aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Improved line map heuristics.Aleric Inglewood2014-08-021-16/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the C# column can't be found in the positionMap (but the line can), use the map immediately after it while correcting for the offset, unless that results in an LSL position before the previous LSL position in the positionMap. The idea behind this heuristic is that in most, if not all cases C# consumes more characters than LSL (for example LSL_Types.LSLInteger instead of just 'integer'). Thus if the distance between the columns of two markers differ in the C# and LSL file, the distance in the C# file will be larger. Moreover, we can assume that every time this happens we will have a marker at the beginning of the longer 'keyword', because those keywords were generated by us in the first place. For example: C#: LSL_Types.LSLInteger f2(LSL_Types.LSLString s) ^ ^ 1 2 will always have markers at the beginning of the long keywords 'LSL_Types.LSLInteger' and 'LSL_Types.LSLString'. If an error is generated in between (for example at the beginning of the function name 'f2') then the correct position is found by using an offset relative to 2 rather than 1. Note that a case where this isn't working correctly is when the user adds extra spaces. For example: LSL: integer f2( string s) would still use the start of 'string' as reference and then go backwards 3 characters only because the corresponding C# still looks like C#: LSL_Types.LSLInteger f2(LSL_Types.LSLString s) ^ ^ only 3 chars difference and the reported error at 'f2' would be here: LSL: integer f2( string s) ^ This can only be fixed by generating a mapping for 'f2' itself, or generating a mapping whenever the amount of spaces is changed.
* Fix looking up line number and colum when there is no exact match.Aleric Inglewood2014-08-021-23/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a compile error reports a colum/error that is not an exact match in the positionMap dictionary, the last position in the map with a line number and position before the reported error should be returned. The old code had the following problems: 1) It returns l,c - which are line and column of the C# file, not LSL. 2) It doesn't set l to 'line' when the map has an entry with 'line'. 3) It sorts the map without taking columns into account, which may result in a random order of the columns. With my mono implementation the columns were reversed in order. For example, if the map contains the following lines: 99,5,49,10 100,30,50,10 100,40,1,0 101,5,51,10 and a translation of 100,35 was requested, then the old code would compare '100' with the keys in the first column - setting l to that key while it is smaller. Hence, l is set to 99. Then it finds the key 100 and doesn't update l. Because of the reversed sort order, it first compares the column 35 with 40, finding that it is smaller and therefore it stops; returning 99,1 instead of finding the correct 100,30 entry and returning 50,10. This patch causes 50,10 to be returned. The remaining problems after this patch are: 1) The sorting might not be necessary at all. 2) The is code duplication (I fixed both instances, but really there should be no code duplication imho).
* Delete extraneous console message in the Configger.Diva Canto2014-05-071-1/+0
|
* Allow Tools.Configger to take -inifile as argumentDiva Canto2014-05-072-8/+9
|
* Eliminated 'Obsolete' warning: don't call do-nothing function ↵Oren Hurvitz2014-04-231-1/+0
| | | | SetPreviousAppearance()
* Added 2 new behaviors to pCampBotDiva Canto2014-02-211-0/+6
|
* Added 2 new behavirors to pCampBot. These are part of a systematic study I'm ↵Diva Canto2014-02-212-0/+159
| | | | doing for understanding the load that AgentUpdate packets incur on the server.
* Update OpenSim.32BitLaunch.exe and Robust.32BitLaunch.exe to .NET 4 versions.justincc2013-11-133-126/+202
| | | | Also fixes some issues in associated solution files
* Record individual region bot disconnects in pCampbot logJustin Clark-Casey (justincc)2013-11-051-5/+12
|
* Fix a race condition where pCampbot actions could continue even if a bot had ↵Justin Clark-Casey (justincc)2013-11-051-1/+1
| | | | disconnected.
* For individual bots, seed random number generator with a random number from ↵Justin Clark-Casey (justincc)2013-11-011-1/+1
| | | | | | BotManager rather than Environment.Tickcount Otherwise, since bots are now created all at once, a bunch will get exactly the same tickcount and hence number sequences
* minor: change "bot" pCampBot help cateogry to "Bots"Justin Clark-Casey (justincc)2013-11-011-12/+12
|
* minor: update pCampbot usage/help statementJustin Clark-Casey (justincc)2013-10-311-4/+4
|
* Remove legacy sqlite lines added internally by OpenSimulator to the ↵Justin Clark-Casey (justincc)2013-10-281-4/+1
| | | | | | [Startup] section. These are long unused but confusingly will be seen in the [Startup] section on a "config save".
* Bump OPenSimulator version and assembly versions up to 0.8.0 DevJustin Clark-Casey (justincc)2013-10-043-3/+3
|
* In pCampbot PhysicsBehaviour.Close(), only cancel jumping if bot is connectedJustin Clark-Casey (justincc)2013-09-031-1/+2
|
* Make pCampbot "add behaviour" and "remove behaviour" console commands work ↵Justin Clark-Casey (justincc)2013-09-031-45/+78
| | | | for all bots if no bot number is given
* Consistently give responsibility for thread sleeping to behaviours rather ↵Justin Clark-Casey (justincc)2013-09-033-1/+7
| | | | | | | than controlling from the main action loop This is to avoid excessive and inconsistent delays between behaviours that currently need to embed sleeps in other actions (e.g. physics) and other behaviours. Might need a more sophisticated approach in the long term.
* Add Close() method to IBehaviour to allow behaviours to cleanup when removed ↵Justin Clark-Casey (justincc)2013-09-034-1/+30
| | | | | | or bot it disconnected. In this case, it is used to turn off jump when physics testing behaviour is removed.
* Add pCampbot "remove behaviour" console command for removing bot behaviours ↵Justin Clark-Casey (justincc)2013-09-032-5/+60
| | | | | | during operation. Doesn't currently work very well as stopping physics, for instance, can leave bot travelling in old direction
* Add ability to adjust pCampbot bot behaviours whilst running with "add ↵Justin Clark-Casey (justincc)2013-09-032-41/+157
| | | | behaviour <behaviour-name> <bot-number>" console commad
* And fix break in "show bot" from commit 9c65207Justin Clark-Casey (justincc)2013-09-031-1/+1
|
* Fix build break from last commit 9c65207. Mono 2.4 lacks ↵Justin Clark-Casey (justincc)2013-09-031-1/+1
| | | | string.join(string, List<string>), or some auto casting is missing
* Show behaviours of pCampbot bots in "show bots" and "show bot" console commandsJustin Clark-Casey (justincc)2013-09-038-12/+45
|
* Rename pCampbot.ini -> pCampBot.ini (and example file) to be consistent with ↵Justin Clark-Casey (justincc)2013-08-231-1/+1
| | | | other capitalizations of pCampBot
* Make pCampbot "show bot" command take the bot number instead of the full bot ↵Justin Clark-Casey (justincc)2013-08-231-4/+9
| | | | | | name Shorter and can do this because bot names are uniform
* Fix a further bug in pCampbot connect where ignoring already connected bots ↵Justin Clark-Casey (justincc)2013-08-221-6/+14
| | | | | | was wrongly counted as a connect Also, only sleep when we actually perform a connection
* Make it possible to adjust the pCampbot login delay via the [BotManager] ↵Justin Clark-Casey (justincc)2013-08-221-0/+7
| | | | LoginDelay parameter of pCampbot.ini
* Add "set bots" command to make it possible to set SEND_AGENT_UPDATES on all ↵Justin Clark-Casey (justincc)2013-08-221-0/+27
| | | | bots whilst pCampbot is running
* In pCampbot, don't try and reconnect bots that are already connected on ↵Justin Clark-Casey (justincc)2013-08-221-1/+2
| | | | console "connect" command
* Fix build break from last commit a3e1b27 on mono 2.4.3Justin Clark-Casey (justincc)2013-08-201-1/+1
| | | | Looks like this level of mono doesn't have a string.Join() which will take a list rather than an array (or some implicit conversion isn't happening)
* Add pCampbot "show bot" console command to show more detailed information on ↵Justin Clark-Casey (justincc)2013-08-202-2/+58
| | | | a particular bot (e.g. what sims they are connected to)
* Add pCampbot console commands to sit all bots on ground and stand all botsJustin Clark-Casey (justincc)2013-08-202-47/+51
|
* Add -connect (-c) switch to pCampbot command line options.Justin Clark-Casey (justincc)2013-08-201-10/+15
| | | | | Now, bots will only connect at startup if this switch is specified. If it is not specified, then a separate "connect" command is required on the pCampbot command line
* Make it possible to reconnect pCampbots with the console command "connect ↵Justin Clark-Casey (justincc)2013-08-193-80/+155
| | | | | | [<n>]". If no n is given then all available bots are connected
* refactor: start bot connection thread within BotManager rather than externallyJustin Clark-Casey (justincc)2013-08-192-5/+27
|
* refactor: restructure pCampbot multi-bot connection code.Justin Clark-Casey (justincc)2013-08-191-10/+60
|
* Make it possible to disconnected a specified number of bots via the pCampbot ↵Justin Clark-Casey (justincc)2013-08-191-46/+55
| | | | | | | console command "disconnect [<n>]" Bots disconnected are ascending from last in numeric order. Temporarily no way to reconnect bots.
* Create a separate pCampbot "disconnect" console command which disconnects ↵Justin Clark-Casey (justincc)2013-08-191-43/+67
| | | | | | | | connected bots. "quit" console command now requires bots to be separate disconnected first before quitting. This is to prepare the way for disconnecting/reconnecting different numbers of bots in a pCampbot session. And hopefully resolves bug where console appears not to be reset if Environment.Exit(0) is called on a different thread
* Show number of connections each bot has established in "show bots" command.Justin Clark-Casey (justincc)2013-08-192-8/+24
|
* Actually implement the bot request object textures switch started in 225cf0d.Justin Clark-Casey (justincc)2013-08-142-0/+9
| | | | Forgot to propogate it down to bot level.
* If pCampbot has been asked to shutdown, don't carry on logging in queued botsJustin Clark-Casey (justincc)2013-08-141-1/+11
|
* Add pCampbot RequestObjectTextures ini setting to control whether textures ↵Justin Clark-Casey (justincc)2013-08-142-0/+9
| | | | are requested for received objects.
* Shutdown a bot's actions by making it check for disconnecting state rather ↵Justin Clark-Casey (justincc)2013-08-141-3/+3
| | | | | | than aborting the thread. Aborting the thread appears to be causing shutdown issues.
* Add a -form switch to pCampbot to allow one to login a sequence of bots ↵Justin Clark-Casey (justincc)2013-08-142-4/+8
| | | | starting from numbers other than 0
* Add the ability to explicitly specify a login start location to pCampbot via ↵Justin Clark-Casey (justincc)2013-08-143-27/+76
| | | | the -start parameter
* Add a SendAgentUpdates setting to a new pCampbot.ini.example file which can ↵Justin Clark-Casey (justincc)2013-08-133-40/+50
| | | | | | control whether bots send agent updates pCampbot.ini.example is used by copying to pCampbot.ini, like other ini files
* Make show bots pCampbot console command print connected, connecting, etc. ↵Justin Clark-Casey (justincc)2013-08-121-0/+13
| | | | bot totals at end.
* Add none behaviour to pCampbot when one wants bots to just stand aroundJustin Clark-Casey (justincc)2013-08-123-10/+57
|
* Fixed incomplete commit r/23317 -- see_into_region. Put the guard around ↵Diva Canto2013-08-071-1/+0
| | | | estate bans also, and delete the obsolete config var.