RAILROADS Online

RAILROADS Online

Ver estadísticas:
Este tema ha sido cerrado
South 19 OCT 2021 a las 5:18 a. m.
Editing Save Files
Trying to learn how to edit these save files is proving difficult, anyone have any tips?
Opening the .sav in notepad++ with the hex editor currently. things just don't seem to line up correctly? is this normal.
Publicado originalmente por Jenny:
I actually worked on that and now have a .exe program with a UI to edit savefiles for :
- money/xp per player
- rolling stock contents (whether it be a car, a loco or a tender)
- player facilities contents (sand, firewood and water, though sand is not yet implemented but it’s ready for when it will be)
- rolling stock respawn (in case of rolling stock going through the map or lost somewhere due to a glitch for instance)
- rolling stock renaming and renumbering
- tree reset to blank save state.

Under work are, amongst other thing:
- map of the network
- industry contents editor
- better rolling stock teleporter
- player teleporter
- all those features but with a non-cheating option (costs money)
- more features and a working company system, with loans, shares, etc…
- a rerail system, as well as train building
- all that, but REAL TIME, so without editing the save file but interaction with the host server instead
- a full 3D interactive map showing tracks, trains, etc… and allowing track building as well !

Of course more features will come as we move on with the updates.

You can file the files over at GitHub on my repo : https://github.com/JennyKmu/RRO_savefile_editor (the program is abbreviated as RROSE)
Read the Readme file for usage instructions and FAQ. The program is released in two versions: a .pyz file if you have a working python install with required module, or a standalone .exe file. You just have to put it in the SaveGame folder, and double click on it to run it. Then just follow instructions 😉
< >
Mostrando 76-90 de 115 comentarios
ray 26 OCT 2021 a las 6:08 a. m. 
I did look in your script for the value of 14 and it didn't crop up. I have been playing with the location of the loco and have successfully moved it back to the start point by changing the vector to the values of a new save. just moved it along the track a bit and then put it back. I then derailed it so its on its side and then moved it back, but it is still on its side location and rotation there is a value for both, but it does let you re-rail it not easy in a save with lots of rolling stock as its not obvious which vector is for which piece of stock.
Jenny 26 OCT 2021 a las 10:17 a. m. 
I created a post on reddit (unofficial) Railroad online subreddit where I'll post further updates for this script. Here is the link: https://www.reddit.com/r/RailroadsOnline/comments/qgb0xa/rro_savefile_editor_downloads/

I'll take a look ray, but indeed that seems complicated to determine which one is which. It should be possible to create a map though, which shows you where are your train pieces, and from there you can select the one you want to move.
MolokoMan 26 OCT 2021 a las 11:39 p. m. 
Publicado originalmente por Jenny:
You're welcome ! The Windows store version is there to simplify installation for young students who want to learn programming, but it's definitely not the best way to install it if you want to get the full potential of python and all its modules.
So, I had the same issue as someone else, downloaded the correct python, but when I start the .py app and select number 3 for my save file it just immediately crashes. No warning. Nothing. Not sure why it keeps closing like that on me.
Jenny 27 OCT 2021 a las 2:37 a. m. 
Publicado originalmente por Moloko_Man:
So, I had the same issue as someone else, downloaded the correct python, but when I start the .py app and select number 3 for my save file it just immediately crashes. No warning. Nothing. Not sure why it keeps closing like that on me.
Mmm strange, can you edit the script file real quick, adding at the end right under the main() the following : input()
That should prevent the script from closing when it crashes and you’ll be able to see what went wrong and tell me what the exception is
Jenny 27 OCT 2021 a las 2:38 a. m. 
Publicado originalmente por Jenny:
Publicado originalmente por Moloko_Man:
So, I had the same issue as someone else, downloaded the correct python, but when I start the .py app and select number 3 for my save file it just immediately crashes. No warning. Nothing. Not sure why it keeps closing like that on me.
Mmm strange, can you edit the script file real quick, adding at the end right under the main() the following : input()
That should prevent the script from closing when it crashes and you’ll be able to see what went wrong and tell me what the exception is

Edit:
Should look like that :
if __name__=="__main__": main() input("press enter to close")
h.reedijk 27 OCT 2021 a las 4:18 a. m. 
i cant find my save file proberly because my steam and games are installed in Drive D ?
South 27 OCT 2021 a las 4:42 a. m. 
Publicado originalmente por h.reedijk:
i cant find my save file proberly because my steam and games are installed in Drive D ?

your save games will still be located on the same place my games are not installed on the main windows drive either, but the game saves are placed there.
easiest navigation is to do this

%appdata% in start menu,
go up a folder to Appdata, then go to local, then arr, then saved, then savegames
Última edición por South; 27 OCT 2021 a las 4:43 a. m.
h.reedijk 27 OCT 2021 a las 8:30 a. m. 
South thanx mate
keume  [desarrollador] 27 OCT 2021 a las 8:35 a. m. 
Publicado originalmente por South:
Trying to learn how to edit these save files is proving difficult, anyone have any tips?
Opening the .sav in notepad++ with the hex editor currently. things just don't seem to line up correctly? is this normal.

Editing save files is not recommended as this can corrupt your file. If you do so make sure you always have a backup ;)

-Stefan
h.reedijk 27 OCT 2021 a las 10:34 a. m. 
Thanx A Lot after start new game and changed the money it worked for exept 1 thing gos wrong the Freight Depot is Gone and no only money code i changed
Jenny 27 OCT 2021 a las 10:53 a. m. 
Publicado originalmente por h.reedijk:
Thanx A Lot after start new game and changed the money it worked for exept 1 thing gos wrong the Freight Depot is Gone and no only money code i changed

Did you change the value manually or did you use the script I shared ? Anyways, start by restoring your save with your back-up, then try again using the script I shared, it should work properly.
South 27 OCT 2021 a las 1:08 p. m. 
If anyone is having trouble I did get the video up and going, goes through multiplayer and singleplayer saves. MONEY ONLY
https://youtu.be/AGQVfHns85U
Merck 27 OCT 2021 a las 9:20 p. m. 
Some sample amounts & their Hex numbers, using HxD Hex Editor (https://mh-nexus.de/en/hxd/)

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000640 00 01 00 00 00 00 00 FA 44 12 00 00 00 49 6E 64
Default game starting value of $2,000 (00 FA 44)

Notes:
  1. Location 640 (00000640)is where this funds value is stored on new games.
  2. Offset #01's value of 01 equals number of players in saved game.
  3. Offest #'s 06, 07, & 08 are locations where the fund amounts are stored.
  4. Offset #09 value of 12 is what you will see for a brand new start with no new tracks laid. Changing the 12 to another number can cause equipment & buildings to disappear.
    Otherwise the value of 14 is what you would often see in this same offset location, for game saves other than brand new games.

Other funds amounts & hex numbers:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 00000640 00 01 00 00 00 00 24 74 49 12 00 00 00 49 6E 64
This gives player $1 million dollars (24 74 49)

40 9C 45 = $5,000
49 9C 45 = $5,001
FF D4 46 = $27,263
00 D4 46 = $27,136

Other values that are outside of these ranges can cause a negative funds amount, or cause equipment & buildings to disappear from the save game.

Use at your own risk on all saves. Create a backup of the game save prior to editing anything.
Última edición por Merck; 27 OCT 2021 a las 9:32 p. m.
ray 28 OCT 2021 a las 3:57 a. m. 
The position of the money value will change depending on the lenth of the players name.
Merck 28 OCT 2021 a las 1:37 p. m. 
Yes indeed you have to look for the various markers, such as posted by others at the beginning of this forum:
  1. Player name
  2. PlayerMoneyArray
  3. FloatProperty
  4. 00 00 01 00 00 00 00
Then after these you can add the correct numbers to make the adjustments.
< >
Mostrando 76-90 de 115 comentarios
Por página: 1530 50

Publicado el: 19 OCT 2021 a las 5:18 a. m.
Mensajes: 115