SH4 Stopped Saving "SaveData.map" Data For Stellarium
Hello,
The title tells it all. I have no idea why, but it is impossible to use the "SHtoStellarium" script to copy my SH4 time and position to Stellarium. The below spoiler contains some extensive information which may help. Thank you in advance for the assistance. |
With some of the older SH tools, you had to have the utility in the Save folder for it to properly find and gather the needed data. I'm sure a custom script could point the app to the proper location, but is it using your script still?
|
For debugging purpose I would add statements (or let the debugger show the contents of variables) that show what "content[longst+4:longnd]" or just longst and longnd contain. Something in this expression does not allow it to become a float. I'm too unfamiliar with Python to know what that could be, just familiar enough in general with such languages that it always helps to check the intermediate conversion steps.
|
@propbeanie - My laptop crashed several hours ago, so I am having to start from scratch. I was using the script and it produced as file, but since the correct numerical data was not produced the script threw errors because the data it did read was alphanumeric which the script could not digest.
@Pisces - That is a good idea. Thanks. The problem is not the script. It works well if I feed it valid data manually. The culprit is SH4 itself. The SaveData.map files is not being populated. The framework is there, but no data, like my position is saved. I will report back. |
I have a SaveData.map in some of my "more involved" saves, and this is all it has:
[Mark]Near as I can tell, there is no "CurrentLocation", or whatever the game would call it. It does record the Waypoint locations, beginning the numbering at "zero". I'm not certain if that is long, lat, heading, or what for the Waypoints. Now, some of the Saves I have that do not have Waypoints or marks, etc., the SaveData.map is not present. I wonder if the py script has error catching for if the file does not exist yet? Also, since SH4 saves a lot of its data in txt files, the numerical characters would be string. Python does have a type-cast, doesn't it? Such that you can do a "string-to-float"? |
In that case, place a waypoint and save. :) Pt0 should be the location of the sub at time of the save.
|
:doh: I would say that you are 99.999999% correct Pisces (catch the SH4 6-digit joke??). I do not understand why that failed to register with me to begin with :doh: :O: - Most of my test Saves for FotRSU have one waypoint set, just to be certain the Load of Saves actually function correctly... :roll: :salute:
|
Sorry, unfamiliar with 6 digits in the context of SH4.
I always set a waypoint as a stopgap for the helmsman that goes out for coffee when he figures he is close enough to the commanded course, but doesn't maintain it. At high timecompressio he will wander off course. |
The "joke" part is that SH4 saves almost ~everything~ with six decimal places, whether it needs that much "resolution" or not. The Save folders are named with eight digits... ah well.
The bad helming was mentioned years ago by someone as a "simulation" of how difficult it is to navigate the boat. I don't know what that has to be so inaccurate, when you can shoot a torpedo with auto-targeting from 3500 yards, and it doesn't wander a whit away from the point of aim... :hmmm: - Again, ah well... it is a game... :arrgh!: - and it is still fun, over 13 years later! :salute: |
@propbeanie
The sub's location is in there... [Waypoint] PointsNb=2 Pt0=14383529.11,1699511.52,-2.97 Pt1=13184944.00,1465757.00,0.00 The script points to "Pt0" and sends it to Stellarium. What I see in my SaveData.map is... [Waypoint] PointsNb=1 Pt0=0 ...which is not a long enough string of numbers, so the script picks up all the structure which is garbage. |
If you don't have a course set, the game seemingly assumes you are flying by the seat of your pants, and does not track waypoints. I do not know why it would NOT track where you are at the time, but... apparently it doesn't.
|
Quote:
Are you saying you got the same... [Waypoint] PointsNb=1 Pt0=0 ...if you saved a game without plotting a course? That is what it sounds like you mean, but I don't want to be presumptuous. I think I will test a few scenarios. |
Quote:
Quote:
|
Okay, I can't figure this out. Sometimes SH4 will produce usable "Pt0=" lat/lon and most of the time it doesn't. I have not yet figured out why sometimes :up: and sometimes :down:. I am going to think through different controlled procedures and methodically try them one by one.
|
UPDATE:
|
All times are GMT -5. The time now is 04:28 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.