harpo99999

{RELEASED} map updateing program v2.0.1

{RELEASED} map updateing program v2.0.1

I have written a vb program to convert the pre 1.14 maps to 1.16

http://www.mediafire.com/file/k5ggzou5zmm/sins map updater v1.1.9.rar

I am thinking of codeing a quick & dirty vb program that will bruteforce convert all earlier maps to 1.14 & entrenchment beta 3.0.

if other mappers are interested I could make it available for general use

ie the program will search all directories for .galaxy files then read each one in, check if it need converting, if it does then add the new items into the file and write the results out if it does not then go to the next file in the list,

 NEW instructions

1 download this (link is to a complete set of the utilities in my dropbox in anchive) 

2 extract downloaded file to desktop (OR any other location in the computer)

3 open location you extracted the archive to

4 create shortcuts to all exe files other than convertdata*.exe

5 use shortcuts to start utility you want to use (btw rebellion versions will work with vanilla,enterenchment and diplomacy/trinity)

 OLD instructions

download the rar which is "solid" with recovery records and a comment

extract the files to any folder

run the exe (written in VB6 so no dotnet runtime load), can also run from a usb stick and has been tested on xp32bit xp64 bit vista 32bit vista 64bit win7 32bit win7 64bit

click on "find galaxies" the program looks in the "appdata\ironclad games\sins of a solar empire" and "program files\Stardock Games\Sins of a Solar Empire" directories & all subdirectories for galaxy files & creates a list in memory of them all

click on "fix galaxies" the program then goes through the list of files it checks if it s an ironclad map if it is it skips it, then it reads the map into memory, then checks the versionnumber if it is the current version it skips the map, then renames the map to *.galold so that the original map is still there & hidden from sins and the map updater, then reads through each line in the map looking for the lines that have changed from the previous version map, when it finds one it replaces the old text with the new text and continues searching and it writes each line out after checking & no change or change is written out to the galaxy file and continues with the next line until the end of file when it closes the galaxy file & checks the next etc.. etc..

there is three other buttons in the program

"exit" exits the program  (doooo!!!!)

"progfiles galaxies" shows you the program files sins directory and allows you browse (LOOK AT) the directories & show all GALAXY files

and the final button

"local apps galaxies"shows you the local applications\ironclad games\sins directory and allows you browse (LOOK AT) the directories & show all GALAXY files

now get out there and enjoy your older maps in the LATEST SIN

by the way it does also convert the map designer maps as well as galaxy forge maps

edit have extended the instructions txt files to convert version 1 maps to version 3 as well the structure txt files are the total change and available here http://www.mediafire.com/file/mrwd0fgmzom/sins map updater update txts.rar

edit I am starting on a new version that will CORRECTLY update version 0, version 1 & version 2 to version 3 maps, ie sins 1.00-1.03,1.04-1.05 and 1.10-1.14 to 1.15+ galaxies.

the latest version is in the mod updater archive which has all of my modding utilities

 and the rebel tolerant beta version adds ONE extra button labeled 'rebel' that will lock it into working on the rebellion map updating in the CURRENT rebellion galaxyforge folder under the documents folder and only updating all the galaxy maps found there to the current rebellion only mapversion 4, and if used without clicking on the rebel button it works the same as the version in the mod updater set

 

HARPO

440,044 views 170 replies
Reply #102 Top

uploaded another variaent of the map updater to WC, will post again when approved, the link will be https://www.wincustomize.com/explore/sins_mods/161/download, and the archive has a version of the map updater that should support rebellion AND vanilla/entrenchment/diplomacy with the exe name of sinsmapupdater2.exe, and Ihave used this exact version to convert maps from entrenchment to rebellion without errors so should work on english language windows and might work on non-english windows.

harpo

 

Reply #103 Top

the latest testing version has been approved and is available

harpo

 

Reply #105 Top

Hey Harpo! Thanks for your continued work on this! I'm having the same problems as Gizz; Error 76 even after grabbing your new version off of just now.

1. No other versions of SoSE are installed.

2. Steam is installed on my E Drive.

3. I'm running W7Pro 64.

4. We played rebellion last night.

Feel free to PM me or whatever. I have a vent we can use if it'll help. :)

Reply #106 Top

spaz0, the eror76 is not able to find the exe's for sins/rebellion as the registry entries do not point correctly to the actual exe's so that it can check the actual version that is installed. you might be able  to force the map updater to work by re-nameing the targetsinsver.txt (this should disable the locate the exe's and the map updater will run).

hope this works for you

harpo

Reply #107 Top

I think I might have found the cause of the error 9(subscript out of range error) in the fail to find the file versions file loading at the start and have uploaded the latest testing exe into my dropbox at http://dl.dropbox.com/u/8023186/sins%20modding%20utilities/sinsmapupdater2a.exe)

spaz0 could you please test this one just drop the exe into the same folder as the previous version it is a new file nameso will NOT overwrite the previous one

harpo

 

Reply #108 Top

Hey Harpo,

I tried renaming "targetsinsver.txt" to "targetsinsver1.txt" but then got the error 9 code (per what I figured you found which lead to your second post).

I downloaded the new version, not overwriting the previous version, and ran "2a" with "targetsinsver.txt" and "targetsinsver1.txt" but both reproduced the same Error 76.

If you want, PM me and we can trade steam/vent info to keep working on it.

Reply #109 Top

my initial testing (in my comps) is with steam in the default install location of the os drive, Ican install steam/rebellion on one of my machines and install to a non-os drive for testing.

harpo

 

Reply #110 Top

Is it possible to just be able to select the maps that I want to update and have it update? I don't know a lot about this stuff but is it vital for the program to have to be able to find the original install files / paths?

I am, however, more familiar with coding for ARMA2 and I know a lot of the time, since installs vary GREATLY with that game, programmers have just had players select the install directories / game executable files which may make your job easier... Just a thought! ;)

Reply #111 Top

to re-write the find files code in the map updater would take a couple of weeks, a re-designed user interface(basically create a compleately new program to do the same job), and create a whole lot of new bugs that would have to be killed before release, but a slightly simpler form would be to get the paths from a text file, BUT then the user would have to edit the text file and insert the correct paths to the folders that are needed, and would get similar crashes if there is an error in either of the paths.

harpo

Reply #112 Top

I think I might know what the cause of the error 76  for systems that have steam installed in a non-default location(I had used a hardcode to the default location inside the program), I am currently attempting to convert it to registry collected locations for the sins/rebellion(on steam sourced versions)(so far in testing the first idea for locating the steam, it crashes on non-steam machines)

harpo

Reply #113 Top

LOL.. ouch.. like I said, I don't know too much about it but am always willing to help! Just let me know how!

Reply #114 Top

and while testing on steam machines it does NOT return ANY info, but does run on non-steam when compiled, but not in the debugger ,so I gave up on being polite to steam and asking it where to look, and went back to direct registry access for the rebellion path in drengine.net where it atleast gets the path to the installed location,

and after a bit more debugging of the switching buttons it now correctly switches between the vanilla paths and the rebellion paths(which work in single version installed mode, but had issues with both installed mode)

dropbox copy of archive http://dl.dropbox.com/u/8023186/sins%20modding%20utilities/sins%20rebel%20map%20updater%20v3.zip

wincustomise copy https://www.wincustomize.com/explore/sins_mods/161/download might need to be re-authorised

harpo

 

Reply #115 Top

Thanks for the continued work on this but now it produces a "Error 13: Type Mismatch" run-time error.  :'(

Reply #116 Top

spaz0 are you using all the files from the archive?,

and when is the error happening ie during the load, or after clicking on the sins/trinity or rebellion buttons or after clicking on the find galaxys button or after clicking on the fix galaxys button?

harpo

 

Reply #118 Top

Sorry Harpo, I wasn't very descriptive of my error and how it was happening.

Yes, I replaced the entire folder with the new files in the ZIP from #115. When I clicked to run "rebelmapupdater3", that's when I received the Run-Time Error 13.

I have downloaded and replaced the ZIP'd version of the exe with your updated version and I still receive the error any time I run / double-click the exe. The program doesn't load.

Reply #119 Top

spaz0, could you try again with the "targetsinsver.txt" renamed as the current "targetsinsver.txt" has the debug lines which involve the area that caused my most recient type mismatches.

harpo

 

Reply #120 Top

I can confirm that it crashes on execution (Run-time error '13') when the most recent 'targetsinsver.txt' is active.

When that's renamed or moved away, your application runs, find galaxies and updates them.

For me, only the 'rebellion' button is available in the UI. Is that as you detect that I only have Rebellion and not Sins/Trinity, or is that a coincidence spawned by disabling targetsinsver.txt?

Reply #121 Top

swiftblizz,

it would be because the program only sees the rebellion entries in the drengin.net part of the registry, and does not see any trinity/sins entries, which means to me that sins has not been run since installing or is not installed.

and if you want to test your idea of the targetsinsver.txt being the cause of your not having an enabled sins/trinity button, just put it back and edit the three lines that read 'debug' so that the whole line is not 'debug', then the map updater will behave and will still offer the sins/trinity & rebellion buttons as per the registry entries in the drengin.net part of the registry

harpo

Reply #122 Top

Excellent! Yes, removing the "targetsinsver.txt" fixed the problem for me and I was able to update my maps! However, now there are 3 versions of the map in the folder; .GALOLD, .GALFIX, .GALAXY. I assume OLD is the original file, FIX is __________, and .GALAXY is the current version? Can I delete OLD and FIX?

 

Edit - I just play tested a couple of the maps and they are working. Thank you SOOO much Harpo for your efforts on this!

Reply #123 Top

yes the galold is the original, the galfix is an intermediate form that has several excess lines in it, and the galaxy is the working current form, and both the galold AND galfix files can be deleted, I left them as a fallback incase of problems, and the targetsinsver.txt just needed to be edited so that the lines that read 'debug' do NOT read 'debug'.

harpo

 

Reply #124 Top

for those of you that are having issues with the map updater, here is the exact info regarding the file format of the targetsinsver.txt and how to get around the issues.

 it is possible to rename the targetsinsver.txt to something else then run again or edit the targetsinsver.txt the file structure is

1 vanilla full dot to detect the exe version number(from the version numer of the exe file)
2 vanilla singledot for mod folder
3 entrenchment singledot for mod folder
4 diplomacy singledot for mod folder
5 rebellion version full dot (ie dot between each of the numbers in the exact version number of the exe)
6 line to enable debug mode in one of my utilities
7 line to enable  debug in another of my utilites
8 line to enable debug in a third of my utilities

 

harpo

Reply #125 Top

When I run this I only get .galtst.  Don't know what I am doing wrong here.