[Opensim-users] Change console prompt

Gudule Lapointe gudule at spekuloos.be
Fri Oct 28 12:31:59 UTC 2011


Thats interesting, but it serves another purpose (change automatically region at startup).

To (really) customize the default prompt, could somebody help me in the process to add a new variable in .ini file or in the .exe command-line parameters? 
I don't know where (and how) they need to be defined in code / retrieved from ini.

Once they are, I can adjust the default prompt in line 833 as told previously with that variable, the same way as I do now with binary path value.

In my previous posts, I said "simulator name" as example, but thinking about it, the "prompt name" or "custom prompt" would probably be more relevant.


Le 28 oct. 2011 à 13:34, Garmin Kawaguichi a écrit :

> OK May be it's not!
> I tried that:
> File OpenSim.cs around line 200
> 
> I commented 2 lines
> 
>           if (m_sceneManager.Scenes.Count == 1) // If there is only one
> region, select it
>               ChangeSelectedRegion("region",
>                                    new string[] {"change", "region",
> m_sceneManager.Scenes[0].RegionInfo.RegionName});
>           //else
>               //ChangeSelectedRegion("region", new string[] {"change",
> "region", "root"});
> 
> and with a startup_commands.txt containing
> change region your_favorite_region
> 
> I have obtained on the console:
> Region (your_favorite_region) #
> ==========================
> Remark : I'm not able to test the whole OpenSim consequence. When there is
> not a change region in the startup_commands.txt, the console displays:
> Region#
> 
> I suppose that the best solution is to move
>           //Run Startup Commands
>           if (String.IsNullOrEmpty(m_startupCommandsFile))
>           {
>               m_log.Info("[STARTUP]: No startup command script specified.
> Moving on...");
>           }
>           else
>           {
>               RunCommandScript(m_startupCommandsFile);
>           }
> after
>           // For now, start at the 'root' level by default
>           if (m_sceneManager.Scenes.Count == 1) // If there is only one
> region, select it
>               ChangeSelectedRegion("region",
>                                    new string[] {"change", "region",
> m_sceneManager.Scenes[0].RegionInfo.RegionName});
>           else
>               ChangeSelectedRegion("region", new string[] {"change",
> "region", "root"});
> 
> 
> GCI
> 
>> ----- Original Message ----- From: "Garmin Kawaguichi" <garmin.kawaguichi at magalaxie.com>
>> Sent: Friday, October 28, 2011 12:19 PM
>> Subject: Re: [Opensim-users] Change console prompt
> 
> 
>> >----- Original Message ----- 
>>> From: "Gudule Lapointe" <gudule at spekuloos.be>
>>> Sent: Thursday, October 27, 2011 10:18 PM
>>> Subject: Re: [Opensim-users] Change console prompt
>>> Of course, if I type "show info" or "show regions", I know where I am. I
>>> would just want to see it immediately, to choose the right console
>>> quicker.
>> 
> ...   ...
>> If it is possible to have a command file executed at the very end of
>> OpenSim
>> init, that will be useful for all, but it's beyond me :))
>> 
>> GCI
> 
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users




More information about the Opensim-users mailing list