This!Commander_X wrote: ↑Sun Dec 12, 2021 11:25 pmI would strongly recommend to backup the file you plan to manually modify...
oolite might need more ram and gc overhead memroy since it stiil crashing
Moderators: winston, another_commander, Getafix
- Cody
- Sharp Shooter Spam Assassin
- Posts: 16081
- Joined: Sat Jul 04, 2009 9:31 pm
- Location: The Lizard's Claw
- Contact:
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
And any survivors, their debts I will certainly pay. There's always a way!
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
Agreed. Always backup an original file either before or during the process of making any changes to it.
Humor is the second most subjective thing on the planet
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
hi
O.K. i'll wait for an updated explanation at http://wiki.alioth.net/index.php/Hidden ... _in_Oolite
matthias
there is no oolite.plist in that folderFor Linux, you can either run the "defaults" command, or just manually add it to your oolite.plist in the same folder.
Code: Select all
mattes@Pille:~/GNUstep/Defaults$ ll
insgesamt 16
drwxrwxrwx 3 mattes mattes 4096 Dez 12 01:43 ./
drwxrwxrwx 5 mattes mattes 4096 Aug 27 11:44 ../
-rw-rw-r-- 1 mattes mattes 3481 Dez 12 01:43 .GNUstepDefaults
drwxr-xr-x 2 mattes mattes 4096 Okt 26 17:42 .lck/
mattes@Pille:~/GNUstep/Defaults$
As Nite Owl noticed, unless you run a "defaults" GNUStep command, that entry will not be there, and will be initialized to its 32M default value.
you can only do that if the file you plan to change is _not_ in XML format.
O.K. i'll wait for an updated explanation at http://wiki.alioth.net/index.php/Hidden ... _in_Oolite
matthias
Oolite 1.91 / Imp. Trader ( slighly modified ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- Cholmondely
- Archivist
- Posts: 5364
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
I'm afraid that the only person doing anything much with those pages is yours truly. And I'm an utter and complete blithering ignoramus! I can't even get my tweaks to stay tweaked...Slartibartfast wrote: ↑Mon Dec 13, 2021 2:16 amhi
there is no oolite.plist in that folderFor Linux, you can either run the "defaults" command, or just manually add it to your oolite.plist in the same folder.Code: Select all
mattes@Pille:~/GNUstep/Defaults$ ll insgesamt 16 drwxrwxrwx 3 mattes mattes 4096 Dez 12 01:43 ./ drwxrwxrwx 5 mattes mattes 4096 Aug 27 11:44 ../ -rw-rw-r-- 1 mattes mattes 3481 Dez 12 01:43 .GNUstepDefaults drwxr-xr-x 2 mattes mattes 4096 Okt 26 17:42 .lck/ mattes@Pille:~/GNUstep/Defaults$
As Nite Owl noticed, unless you run a "defaults" GNUStep command, that entry will not be there, and will be initialized to its 32M default value.
you can only do that if the file you plan to change is _not_ in XML format.
O.K. i'll wait for an updated explanation at http://wiki.alioth.net/index.php/Hidden ... _in_Oolite
matthias
I am pretty sure that the Holy Jens is more likely to return from his state of maximal occultation and stick the Holy Sceptre of Sacerdotal Serenity through the spokes of the Wheel of Destiny than the Hidden_Settings_in_Oolite page will ever be edited in a fashion comprehensible by us mere mortals...
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
That file, despite a nicely written wiki page is still a mystery. When I tried taking advantage of the settingsSlartibartfast wrote: ↑Mon Dec 13, 2021 2:16 amO.K. i'll wait for an updated explanation at http://wiki.alioth.net/index.php/Hidden ... _in_Oolite
matthias
- it took me a long time to figure out the exact XML snippet I had to put into the file
- it took me a long time again to find out why they took no effect: the file had been overwritten whenever I started Oolite, removing all my manual changes
That taught me to no longer bother editing the file myself. Which leaves the question what it is meant for, what the wiki page is meant for and why noone had encountered this before...
Sunshine - Moonlight - Good Times - Oolite
-
- Quite Grand Sub-Admiral
- Posts: 6681
- Joined: Wed Feb 28, 2007 7:54 am
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
.GNUstepDefaults is overwritten only when there is a syntax error in there, due to the entirety of the contents becoming invalid in this case. If you make a manual change, then it should remain in subsequent game launches, as long as it is a valid one and does not cause the defaults file to self-destruct. At least this is the case in Windows (which btw has the defaults file in OpenStep format and it is therefore much more straightforward to edit).
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
The safest quick explanation is:Slartibartfast wrote: ↑Mon Dec 13, 2021 2:16 am[...] O.K. i'll wait for an updated explanation at http://wiki.alioth.net/index.php/Hidden ... _in_Oolite
matthias
1. If you run
Code: Select all
user@host/5:~
$ defaults read oolite | grep "jsruntime-size-mib"
2. Once you run
Code: Select all
user@host/5:~
$ defaults write oolite "jsruntime-size-mib" 256
Code: Select all
$ defaults read oolite | grep "jsruntime-size-mib"
oolite jsruntime-size-mib 256
3. In my case, this setting was stored in oolite.plist, as:
Code: Select all
<key>jsruntime-size-mib</key>
<string>256</string>
Several considerations about the "defaults" command:
- the default installation of GNUstep on some distributions might not include it, it's very likely you'll have to install GNUstep-dev package
- running the "defaults" command as-is might require to "initialize GNUStep environment", that is, to run first:
Code: Select all
. /usr/share/GNUstep/Makefiles/GNUstep.sh
Code: Select all
source /usr/share/GNUstep/Makefiles/GNUstep.sh
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
Hello Commander_X
thx!
Ok
this seems to work ( "read" without any other options displays all )
-- additional ---
the command "defaults write oolite "jsruntime-size-mib" 64"
creates the file "/home/mattes/GNUstep/Defaults/oolite.plist"
if it doesn't exist -- and adds new "keys" to an existing one.
( and doesn't touch the ".GNUstepDefaults" )
so here my (test) oolite.plist
!!! the both addional keys - i have added only for testing
-- i can't see any effect ( doesn't matters YES|NO ) # but - i think - thats another story
whether the 64MB has an effect --- ...i hope
matthias
thx!
Ok
this seems to work ( "read" without any other options displays all )
Code: Select all
mattes@Pille:~$ defaults read
mattes@Pille:~$ defaults write oolite "jsruntime-size-mib" 64
mattes@Pille:~$ defaults read
oolite jsruntime-size-mib 64
mattes@Pille:~$
the command "defaults write oolite "jsruntime-size-mib" 64"
creates the file "/home/mattes/GNUstep/Defaults/oolite.plist"
if it doesn't exist -- and adds new "keys" to an existing one.
( and doesn't touch the ".GNUstepDefaults" )
so here my (test) oolite.plist
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>jsruntime-size-mib</key>
<string>64</string>
<key>show-ship-model-in-status-screen</key>
<string>NO</string>
<key>splash-screen</key>
<string>NO</string>
</dict>
</plist>
-- i can't see any effect ( doesn't matters YES|NO ) # but - i think - thats another story
whether the 64MB has an effect --- ...i hope
matthias
Oolite 1.91 / Imp. Trader ( slighly modified ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
I checked the same and have same results. Whether it takes any effect I cannot tell. The game still looks just the same.Slartibartfast wrote: ↑Mon Dec 13, 2021 6:00 pmHello Commander_X
thx!
Ok
this seems to work ( "read" without any other options displays all )
[...]
And I am wondering why all keys should just be string values - but the default command does not allow to specify other types?
Sunshine - Moonlight - Good Times - Oolite
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
I cannot say I know why the behavior of the "defaults" command is the one observed.
As can be noticed by "man defaults", indeed, there is not option/parameter to specify the type of the key you want to set (which in turn is not the same for the MacOS's version of the command -- you can tell what type of parameter you're passing there).
I'd guess, changing the type of the key is left as a manual step for GNUstep.
As can be noticed by "man defaults", indeed, there is not option/parameter to specify the type of the key you want to set (which in turn is not the same for the MacOS's version of the command -- you can tell what type of parameter you're passing there).
I'd guess, changing the type of the key is left as a manual step for GNUstep.
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
The more important question is: Does Oolite rely on the type, or can it handle string values just the same way?Commander_X wrote: ↑Tue Dec 14, 2021 2:22 pmI cannot say I know why the behavior of the "defaults" command is the one observed.
As can be noticed by "man defaults", indeed, there is not option/parameter to specify the type of the key you want to set (which in turn is not the same for the MacOS's version of the command -- you can tell what type of parameter you're passing there).
I'd guess, changing the type of the key is left as a manual step for GNUstep.
Such stuff should definitely go into some documentation to make our lives easier...
Sunshine - Moonlight - Good Times - Oolite
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
The answer to this question is that it does rely on the type, and the fact that GNUstep ignores the values with the wrong type is a good thing (e.g. Oolite doesn't crash).
And it seems there is a way to deal with the type using the "defaults" command even for Linux/GNUstep setups, to avoid the dreaded manual editing. The documentation for the "serialization of the property lists" can be found in the NSPropertyList.h file (part of the development GNUstep Foundation header file), or you can click in your browsers here.
For the impatient, this is how you should insert an integer for Oolite:
Code: Select all
defaults write oolite jsruntime-size-mib '<*I64>'
I didn't try it, but it seems that '<integer>64</integer>' is also supported (instead of '<*I64>').
Again, this is just a Linux recommendation. Mac users have specific options for the "defaults" command that help with specifying the type of the value. For the Windows users, though, there would be a large amount of twists and sweat necessary to get this working.
- Cholmondely
- Archivist
- Posts: 5364
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
I'm an ignoramus... but would there be any way just to make it adjustable from the F2 game options page, along with all the other gubbins? Even if it was for just the one platform? (Can't adjust gamma on the AppleMac F2 page, for example, but at least one can do so in Linux...).
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- Slartibartfast
- Deadly
- Posts: 175
- Joined: Mon Jan 21, 2008 3:54 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
Hi
next test
and the resulting oolite.plist
but the both boolean "things" have again no effect
matthias
next test
Code: Select all
mattes@Pille:~$ defaults write oolite jsruntime-size-mib '<*I64>'
mattes@Pille:~$ defaults write oolite splash-screen '<*BN>'
mattes@Pille:~$ defaults write oolite show-ship-model-in-status-screen '<*BY>'
mattes@Pille:~$ defaults read
oolite splash-screen 0
oolite show-ship-model-in-status-screen 1
oolite jsruntime-size-mib 64
mattes@Pille:~$
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>jsruntime-size-mib</key>
<integer>64</integer>
<key>show-ship-model-in-status-screen</key>
<true/>
<key>splash-screen</key>
<false/>
</dict>
</plist>
matthias
Oolite 1.91 / Imp. Trader ( slighly modified ) on Lubuntu 22.04 LTS on AMD64 2x 3800+ ,
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
ATI Radeon R7240 XFS / Samsung TV 40" 1080p
C-Media CMI8738 / Yamaha RX-V575 / DIY-Speaker
Logitech Attack3 & standard german keyboard
-
- ---- E L I T E ----
- Posts: 675
- Joined: Sat Aug 09, 2014 4:16 pm
Re: oolite might need more ram and gc overhead memroy since it stiil crashing
I have the "ship model" setting already in the .plist file (as a YES string) and works as expected (and didn't want to play with it -- it has a long key name ).Slartibartfast wrote: ↑Fri Dec 17, 2021 7:19 pm[...] but the both boolean "things" have again no effect [...]
I tested though the splash-screen setting with both NO (as a string) and '<*BN>' formats in the defaults command line, and the option was honored by the game (that is, no splash screen). I am not sure why it/they wouldn't work for you.