changeset:   44:cd1ddc2c6e1e
tag:         tip
user:        Pagnon Stéphane <krinn@chez.com>
date:        Tue Oct 30 23:14:02 2012 +0100
files:       changelog.txt package/scp-aitest.tar package/scp-gstest.tar protocol.txt scp-aitest/main.nut scp-gstest/main.nut src/client.nut src/main.nut src/signs.nut
description:
- Fix infinite loop fix to a finite one
- Fix CanSpeakWith to return true when AI speak with GS


changeset:   43:0fd8f6aa57fc
user:        Leif
date:        Tue Oct 30 21:33:44 2012 +0100
files:       build-package.sh package/scp-aitest.tar package/scp-gstest.tar src/ai-header.nut src/client.nut src/command.nut src/gs-header.nut src/main.nut
description:
Remove: Major.Minor version. Only use hg revision for versioning of the library.


changeset:   42:c3e6bcb4fbc8
user:        Leif
date:        Tue Oct 30 20:54:11 2012 +0100
files:       build-docs.py
description:
Feature: Handle constructor documentation


changeset:   41:a491f2de2a3e
user:        Leif
date:        Tue Oct 30 20:53:23 2012 +0100
files:       src/main.nut
description:
Doc: Constructor


changeset:   40:0ae71e901c93
user:        Pagnon Stéphane <krinn@chez.com>
date:        Tue Oct 30 19:15:00 2012 +0100
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/client.nut src/command.nut src/events.nut src/main.nut src/messagepool.nut src/registration.nut src/signs.nut
description:
- Initial work on AIAI protocol, need more to have a something usable
- Register client with aiai protocol, you cannot change it now
- The lib need to be init by its constructor only
- Fix bug with updating company list sometimes (context error with missign static call)
- When a company disappear and reappear, invalidate previous company registration and wait for a new
one
- Update documentation
- Add AI protocol functions
- Fix event to only inform our company list of a change
- Fix bug when AIBuild don't return an error and fail to build a sign
- Add checks to enforce proper usage of main.nut
- New command base for aiai protocol handling
- Fix bug with invalid header of a sign that has disappear while we reach the time to read it.
- When loading a game, mark valid signs as dirty for the GS
- When loading a game, mark valid signs as "to be removed" for the AI owner.


changeset:   39:f41f4eed03a5
user:        krinn <krinn@chez.com>
date:        Sat Oct 27 11:35:31 2012 +0200
files:       package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar src/signs.nut
description:
- Pushing changes with debug part in it as i don't have time for more. Will fix everything on next commit.


changeset:   38:c48df191b5e0
user:        Pagnon Stéphane <krinn@chez.com>
date:        Fri Oct 26 03:14:52 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/client.nut src/library.nut src/messagepool.nut src/signs.nut
description:
- Fix : Check if a sign content changed to detect a new sign using an
old sign position, avoiding weird handling of it.
- Remove sign hold by deity from GS handling


changeset:   37:f0d48214ab85
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu Oct 18 01:28:04 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/client.nut src/command.nut src/messagepool.nut src/signs.nut
description:
- Fix memory leak and error with message pool handling, some messages
were left behind and never removed.
- Fix GS catch and remove signs too fast, so the AI have no way to check
its signs were there, now we auto-add to sign list the newly created
signs, so if the sign disappears, message will get dispatch too.
- Clear default settings to no logging for the release version
- Fix bug with calc signs poolID
- Remove cruft code left from testing
- Fix the mistake were GS companyID was taken as-is instead of the
companyID of the company the GS is building sign for


changeset:   36:38a203833659
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sat Sep 29 02:19:21 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar scp-aitest/main.nut src/client.nut src/command.nut src/main.nut src/message.nut src/messagepool.nut src/signs.nut
description:
- Change how we handle signs, should be smarter, so better, and also
faster
- Add ability to query a missing part when finding a hole in message,
sender receive the part number and repost it to fill the gap
- Add a new command SCPGetHole (guess why?)
- Add more error message
- Message are now always record (so we could resend a missing part) and
only discard when their signs disappears (still a bug in it as message
pool cannot goes back to 0, because of delayed message kept in it)


changeset:   35:1cdeb0667d31
user:        Leif Linse <leif.linse@gmail.com>
date:        Wed May 30 22:00:51 2012 +0200
files:       build-package.sh
description:
Fix: commited too much. The changes to build-package.sh were not intended and have now been reverted.


changeset:   34:f59332b678fe
user:        Leif Linse <leif.linse@gmail.com>
date:        Wed May 30 21:57:38 2012 +0200
files:       build-package.sh src/main.nut
description:
Improve the documentation of Check() and SetEventHandling. Document that Check() have a value and improve the texts about SetEventHandling.


changeset:   33:428de3e7a21b
user:        Pagnon Stéphane <krinn@chez.com>
date:        Tue May 22 18:16:20 2012 +0200
files:       build-package.sh changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/ai-header.nut src/client.nut src/events.nut src/gs-header.nut src/main.nut src/messagepool.nut
description:
- Readd events handling : update reference in build-package.sh main.nut
and the file itself events.nut
- Add a function to enable/disable events handling by the lib, check lib
API SetEventHandling for details
- OK, so now we hookup our function to handle event thru
(AI/GS)EventController.GetNextEvent() so any AI/GS calling this function
will in fact call us, so we can work the event, and resend back the
event result so the script could handle it too.


changeset:   32:6f03c51a4bda
user:        Pagnon Stéphane <krinn@chez.com>
date:        Tue May 22 03:39:31 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar scp-aitest/main.nut src/charcode.nut src/main.nut src/signs.nut
description:
- Change Check() so it return true if the lib tasks list isn't empty, and false if the lib has done all work.
As the lib only process one query per Check() run, the lib could still
have more queries to process, in this case, it will return true.
This could be use to re-run Check() to speed up all queries processing
and if you wish gave more time to the lib. (it was in Zuu's todo)
- Add maxSignPerCompany to higher our sign buffer as a result of
flooding bug
- Add GetSignPoolID so we no more use the MessagePool.GetPoolID that is
limit to 256. This way we could have much more signs handled than 256
(upto 15*maxSignPerCompany).
If the signID was greater than 256, the lib goes buffer overrun and can
mistake a companyID for another, resulting in partial message read as
the companyID no more match the original companyID of the message in the
sign.
- Update garbage collector so it now remove also the sign itself while
removing sign references. It also remove references to a sign if it find
a no more valid sign.
At end garbage collector is now able to lower down to 0 the sign buffer,
doing a great work.
- Readd messageID in the sign header even for message that don't expect
answer. Without the messageID we have (few few) but still a chance two
different messages are taken for the same one : per example when an AI
sent two messages using the same command, header might end the same
because of lack of messageID
- Don't remove any sign, but flag them in the buffer so garbage
collector will remove them for us : this way, we will always answer to a
message before the signs are remove, forcing the signID of the answer to
be different from the query signID.


changeset:   31:a4b2f8abd95d
user:        Pagnon Stéphane <krinn@chez.com>
date:        Mon May 21 11:47:56 2012 +0200
files:       build-package.sh changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/ai-header.nut src/gs-header.nut src/main.nut
description:
- Commit Zuu changes to add release/dev versions of package in build-package.sh
- Change subversion references to minorversion to avoid confusion with subversion: the program


changeset:   30:a072dfbb71ab
parent:      29:35aa77a4759d
parent:      25:d1f1d39fab1b
user:        Pagnon Stéphane <krinn@chez.com>
date:        Mon May 21 02:45:28 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut
description:
- merging change, update merged files


changeset:   29:35aa77a4759d
user:        Pagnon Stéphane <krinn@chez.com>
date:        Mon May 21 02:37:44 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/signs.nut
description:
- Reverse how we draw message, from end to 0 instead of 0 to end : so a
GS must wait for sign0 to process message and if the AI wasn't fast
enough the GS could start reading before all signs were display.
Shortening the message length.
- Update GS/AI tests


changeset:   28:1f4733bc96db
user:        Leif Linse <leif.linse@gmail.com>
date:        Mon May 21 00:16:02 2012 +0200
files:       build-docs.py
description:
Add: make build-docs.py build docs for both main.nut and message.nut


changeset:   27:7e703ac07e68
user:        Leif Linse <leif.linse@gmail.com>
date:        Mon May 21 00:15:34 2012 +0200
files:       src/message.nut
description:
Fix: comment of GetBoolData missed one condition


changeset:   26:8341511a97f8
parent:      24:4af60d0f9532
user:        Leif Linse <leif.linse@gmail.com>
date:        Sun May 20 23:59:41 2012 +0200
files:       src/message.nut
description:
Add: Message.GetIntData, Message.GetStringData and Message.GetBoolData. These functions return null in all cases when Message.GetData returns null and also if the stored data is of the wrong type. The availability of these functions should encourage script writers to mind the type of incomming data


changeset:   25:d1f1d39fab1b
user:        Pagnon Stéphane <krinn@chez.com>
date:        Mon May 21 02:15:30 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/signs.nut
description:
- Reverse signs display from max to 0 instead of 0 to max to allow AI
finish drawing signs while GS doesn't have a chance to start reading
before AI has finish draw all of them. GS might think the message is
shorter else.
- Update tests cases


changeset:   24:4af60d0f9532
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sun May 20 22:55:59 2012 +0200
files:       build-package.sh changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/ai-header.nut src/gs-header.nut src/main.nut
description:
- Remove events.nut file and reference to it
- Update buildpackage.sh to handle a subversion of the lib


changeset:   23:859df234bd4c
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sun May 20 22:16:19 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/events.nut src/main.nut
description:
- Remove events to discover companies as GS/AI handling event were removing it the lib was block waiting for an
event it cannot catch.


changeset:   22:ed5a409b2e5f
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sun May 20 21:52:15 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/charcode.nut src/signs.nut
description:
- Add support for null type
- Add support for sign number
- Bugfix: decoding a string with coded chars in it wasn't working properly
- Bugfix: a string with extra coded char in it was too long, and cut by openttd (ending with a too short string
pass)


changeset:   21:b1b757cf4bf2
user:        Pagnon Stéphane <krinn@chez.com>
date:        Fri May 18 03:03:26 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/charcode.nut src/messagepool.nut
description:
- fix bug with command unknown when command is in the pool
- fix bug encoding a non printable/usable char in string fail


changeset:   20:fe401e8999d7
user:        Leif Linse <leif.linse@gmail.com>
date:        Thu May 17 23:30:27 2012 +0200
files:       src/message.nut
description:
Add: function to ease safe reading of data without cluttering the code with all necessary checks


changeset:   19:b33ab41a963c
user:        Leif Linse <leif.linse@gmail.com>
date:        Thu May 17 18:53:16 2012 +0200
files:       build-docs.py
description:
Fix: also support ... params


changeset:   18:73704f74d40a
user:        Leif Linse <leif.linse@gmail.com>
date:        Thu May 17 18:27:19 2012 +0200
files:       build-docs.py
description:
Tidy up the docs builder script


changeset:   17:7161b8167601
user:        Leif Linse <leif.linse@gmail.com>
date:        Thu May 17 17:53:08 2012 +0200
files:       src/main.nut
description:
Add: more documentation


changeset:   16:707b8319944b
user:        Leif Linse <leif.linse@gmail.com>
date:        Thu May 17 17:44:04 2012 +0200
files:       build-docs.py
description:
Fix: docs build script


changeset:   15:b93c99fb4130
user:        Leif Linse <leif.linse@gmail.com>
date:        Thu May 17 17:15:37 2012 +0200
files:       build-docs.py src/main.nut
description:
Add: Simple DoxyGen-like documentation that outputs documentation in wiki-format


changeset:   14:db7531e2ad98
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 17 15:02:57 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/main.nut
description:
- Move public functions at start and private ones at end of file


changeset:   13:02b688f587a6
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 17 14:56:36 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar
description:
- Update AI/GS sample with new communication tile position


changeset:   12:8749e0dd24f2
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 17 14:50:49 2012 +0200
files:       changelog.txt src/signs.nut
description:
- Moving Communication Tile to pos 2,1


changeset:   11:2b67e045444d
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 17 14:42:54 2012 +0200
files:       changelog.txt src/main.nut
description:
- Add public function to get communication tile position


changeset:   10:e1c8a5ba73b6
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 17 12:39:48 2012 +0200
files:       changelog.txt src/main.nut
description:
- fix ident spacing in main.nut


changeset:   9:18b645f571b7
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 17 12:03:54 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar scp-aitest/main.nut src/client.nut src/command.nut src/main.nut
description:
- Invalidate all commands before registration, so server must revalid them, this allow us to buffer any commands, even
ones invalid at first, that might get validate by server later. This enforce a non validate command to not be sent to
server, preventing a wrong command sent.
ie: We have a command #4 the server don't know this one, but server itself known another command #4, this prevent us to
send our #4 command to the server. A kind of desync, and server would have tried to answer to its command #4 using
arguments from our command #4... blahblahblah, you get the idea it wasn't good for the server health.


changeset:   8:ee6225e143c0
user:        Pagnon Stéphane <krinn@chez.com>
date:        Wed May 16 22:28:30 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/client.nut src/command.nut src/main.nut
description:
- fix bug with too few commands accept
- update to pass context when calling the the callback function


changeset:   7:44ed38de74a5
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sat May 05 21:11:10 2012 +0200
files:       changelog.txt src/command.nut
description:
- Fix error handling of a command that doesn't expect any answer


changeset:   6:ce4ba39a3e4e
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sat May 05 11:58:40 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar scp-aitest/main.nut scp-gstest/main.nut src/command.nut src/main.nut src/messagepool.nut src/signs.nut
description:
- update to make the test scripts working, scpgstest and scpaitest are working


changeset:   5:34ab210541db
user:        Pagnon Stéphane <krinn@chez.com>
date:        Sat May 05 02:31:01 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar protocol.txt src/client.nut src/command.nut src/main.nut src/messagepool.nut src/protocol.txt
description:
- Update protocol info
- Allow buffering of message if we're not ready to send message (not yet registred)
- Fix bug when saving a message for a companyID, we were saving it to "true" or "false" company
instead of the companyID


changeset:   4:8ef1b76f6868
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 03 22:51:19 2012 +0200
files:       changelog.txt src/command.nut src/main.nut
description:
- fix bool with "bool" checks in SCPLogging_Info/Error funcs


changeset:   3:723b6c1cbecc
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 03 22:40:28 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar src/message.nut
description:
- Oops, display the args params in info/error function instead of "array"


changeset:   2:dcc6602549dc
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 03 22:35:37 2012 +0200
files:       changelog.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar src/charcode.nut src/client.nut src/command.nut src/commandset.nut src/events.nut src/main.nut src/message.nut src/messagepool.nut src/registration.nut src/signs.nut
description:
- Add configuation to enable/disable log info and error
- Swap "print" with the new log info function
- Add SCP: to all message (except init message that must display info
to grab source for license purpose)
- Some comment/code cleanup
- Set logging and error to enable per default, until we reach a "could
release" version


changeset:   1:2777be2caec2
user:        Pagnon Stéphane <krinn@chez.com>
date:        Thu May 03 00:18:33 2012 +0200
files:       changelog.txt src/signs.nut
description:
- Fix issue 3955 : don't try to slice part of an header that is flag as
invalid.


changeset:   0:0fe1aee10dce
user:        Pagnon Stéphane <krinn@chez.com>
date:        Mon Apr 30 22:31:00 2012 +0200
files:       build-package.sh changelog.txt license.txt package/SCP-noai.1.tar package/SCP-nogo.1.tar package/scp-aitest.tar package/scp-gstest.tar readme.txt scp-aitest/info.nut scp-aitest/main.nut scp-gstest/info.nut scp-gstest/lang/english.txt scp-gstest/license.txt scp-gstest/main.nut scp-gstest/readme.txt scp-gstest/town.nut scp-gstest/version.nut src/ai-header.nut src/charcode.nut src/client.nut src/command.nut src/commandset.nut src/events.nut src/gs-header.nut src/library.nut src/main.nut src/message.nut src/messagepool.nut src/protocol.txt src/registration.nut src/signs.nut
description:
- Initial commit


