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

439,636 views 170 replies
Reply #51 Top

Now that Sins is 1.1.9....

 

Any chance we could get a newer version :)?

 

Didn't run across this program until just now, so I don't want to have to back-version!

Reply #52 Top

it is in the modding utilities 1.19 on filefront and filefactory, but I forgot to include 2 needed ocx files which are in my essentials and need to be extracted to the SAME folder essentials filefront.

the only difference between the 2.1 and latest release is the targetsinsver.txt file as the actual map format has not changed since 1.15/entrenchment 1.01 and there has been no need to update the program itself.

harpo

 

Reply #53 Top

Can you please put the files together for just the map updater and update the main post. I usually read the main and download from main and read posts if there is a problem. Now I have to do everything over again. :( not worth it.

I also had sins installed on anther hd and reinstalled on c after i made room. It wants the old dir so i had to copy the game there to get this to work and i updated the target to my version so i got it to run but I would rather be able to pic my dirs or pic my map. Just a suggestion.

Reply #54 Top

myfist, I already do do that with the modding utilities pack over in the mod updating thread.

all of my utilities use the sins installation path in the registry

Then launch the System Registry (Start-> run, and type regedit)
Look for

HKEY_LOCAL_MACHINE\SOFTWARE\Stardock\Drengin.net\sins
HKEY_LOCAL_MACHINE\SOFTWARE\Stardock\Drengin.net\sinsentrench
HKEY_LOCAL_MACHINE\SOFTWARE\Stardock\Drengin.net\sinsdiplo

For Vista 64 bit and windows 7 64bit;
HKLM>SOFTWARE>Wow6432Node>Stardock>Drengin.net>sins
HKLM>SOFTWARE>Wow6432Node>Stardock>Drengin.net>sinsentrench
HKLM>SOFTWARE>Wow6432Node>Stardock>Drengin.net>sinsdiplo

inside the sins twig there is a path leaf/string value, this is the path to the sins/entrenchment/diplomacy installation folder that my utilities use

and if the map updater is in a different folder just delete the targetsinsver.txt file and the map updater will work without problems as all the currently used map locations are in the user space on the windows drive.

harpo

 

 

Reply #55 Top

Thanks again harpo  :grin:

Reply #56 Top

the latest map updater is included in my modding utilities pack in the mod updater thread

harpo

Reply #57 Top

Just had a look at the maps included in the beta 1 of rebellion (btw mapversion 3 maps DO play in rebellion)

 and found one new line in the start area of the map(for the trigger count),

two new lines in each of the planets AND stars (btw the MAP NOW specifies the moveAreaRadius AND hyperspaceExitRadius for each of the bodies) (i remember seeing some threads/requests for this feature a while ago)

harpo

Reply #58 Top

Just what are the "triggers" StarClad was talking about?  Having larger gravity wells or at least customizable gravity wells will be interesting. 

Reply #59 Top

I have only started two games to date, both on one of my maps, and only played to the titan crash, and have not looked any deeper than an updated from vanilla map to see what the differences in the map was, and upon further searching, NONE of the currently available maps have ANY triggers set, so can give no info about them.

sorry

harpo

Reply #60 Top

I have just tested rebel 1.02 with mapversion 3 maps and a APP CRASH.

looks like they removed the mapversion3 support from rebellion, so I need to get to work in the map updater.

harpo

 

Reply #61 Top

Differences from version 4 to version 3 maps

triggerCount 0<-------??????

 

for the star and planet section

 

star
    designName "Star8"
    inGameName "Florundion Alpha"
    type "RedStar"
    pos [ 389 , 1296 ]
    radius 100.000000
    moveAreaRadius 60000.000000
    hyperspaceExitRadius 40000.000000
    planetCount 1
    planet
        designName "Planet0"
        inGameName "Florundion"
        type "Wormhole"
        pos [ 393 , 1326 ]
        moveAreaRadius 40000.000000
        hyperspaceExitRadius 30000.000000
        owner ""
        isHomePlanet FALSE
        normalStartUpgradeLevelForPopulation 0
        normalStartUpgradeLevelForCivilianModules 0
        normalStartUpgradeLevelForTacticalModules 0
        normalStartUpgradeLevelForArtifacts 0
        normalStartUpgradeLevelForInfrastructure 0
        quickStartUpgradeLevelForPopulation 0
        quickStartUpgradeLevelForCivilianModules 0
        quickStartUpgradeLevelForTacticalModules 0
        quickStartUpgradeLevelForArtifacts 0
        quickStartUpgradeLevelForInfrastructure 0
        planetItems
            templateName ""
            subTemplates 0
            groups 0
        spawnProbability 1.000000
        useDefaultTemplate TRUE
        entityCount 0<-------------------------------I assume this is where you add ship and module entities
        asteroidCount 0<----------------------------Not sure about this, add moons maybe
    connectionCount 1
    connection
        planetIndexA -1
        planetIndexB 0
        spawnProbability 1.000000
        type "PhaseLane"
    entityCount 0
    spawnProbability 1.000000


for the player section

player
    designName "NewPlayer0"
    inGameName "NewPlayer0"
    overrideRaceName ""
    teamIndex -1
    startingCredits 3000
    startingMetal 800
    startingCrystal 250
    isNormalPlayer TRUE
    isRaidingPlayer FALSE
    isInsurgentPlayer FALSE
    isOccupationPlayer FALSE
    themeGroup ""
    themeIndex 0
    pictureGroup ""
    pictureIndex 0

 

Hope this information helps and sorry about the highlights. Not sure how to disable

Reply #62 Top

I had already found all of the changes in the map format, but am having some difficulties with a entity count line that should appear in WORMHOLES and no other connections as well as the last line of stars and in planets, but is also appearing in the other connections that it should NOT, and so far I would estimate that I am approx 95% through the alpha stage for the rebel map updater, but the last 5% is the bugger to finish. I will move the program to beta status when it can convert a trinity map to rebellion without rebellion crashing or throwing an error message.

harpo

 

Reply #63 Top

latest state of the map updater is it is now able to update aprox 80-90% of maps, the ones with the issues at present are the maps that use 'isplayerrace' function, (mostly for spawning extra ships/structures in a map), and occasional maps that for some reason do not get all the changes(and I do not know why)

harpo

 

Reply #64 Top

ok you bunch, I am releaseing the current rebel capable map updater, NOTE it is still beta.

there area a couple of issues that might happen the most likely is that it can not find the rebellion maps folder, and if this happens I want those that have this issue to email the info.txt files to me so that I have a chance of correcting this issue, the next most likely is that a map will not update properly  and causea a crash due to the isPlanetOwnerRace being broken in rebellion compared to ALL the earlier sins versions.

harpo

 

+1 Loading…
Reply #65 Top

It would seem the nub to sins modding is screwing me up.  I have Steam+all games installed on a separate harddrive than the one that Windows is installed on.  I tried making a directory into my Local etc etc, I still get "Path Not Found" :<

Reply #66 Top

jshwthrs5, are you modding trinity OR rebellion?

trinity uses the local apps on the windows drive ie if windows is installed on c then it usually will be on c,

BUT

rebellion uses the \My Documents\My Games\Ironclad Games\Sins of a Solar Empire Rebellion location for the mods/maps etc

and BOTH of these do NOT alter ANYTHING in the steamapps area.

and here is my standard modding location info

assuming you have sins 1.193/entrenchment 1.053/diplomacy 1.34(the current non-beta versions), AND your windows is installed on the 'C:' drive,  the Mods NEED to be placed here for xp
C:\Documents and Settings\'user name'\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods-v1.193
C:\Documents and Settings\'user name'\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods-Entrenchment v1.053
C:\Documents and Settings\'user name'\Local Settings\Application Data\Ironclad Games\Sins of a Solar Empire\Mods-Diplomacy v1.34

or here for vista/windows 7
C:\Users\'user name'\AppData\Local\Ironclad Games\Sins of a Solar Empire\Mods-v1.193
C:\Users\'user name'\AppData\Local\Ironclad Games\Sins of a Solar Empire\Mods-Entrenchment v1.053
C:\Users\'user name'\AppData\Local\Ironclad Games\Sins of a Solar Empire\Mods-Diplomacy v1.34

and for rebellion the path IS

My Documents\My Games\Ironclad Games\Sins of a Solar Empire Rebellion\Mods-Rebbellion v#.###    with the #.### replaced by the current rebellion patch version numberand if you are using the dev, you NEED to place the mod in the ' dev' folder

NOTE the first two folders after the 'user name' are hidden , so to see them you must first click on 'tools' then 'folder options', then 'view', then click on 'show hidden files& folders' then click ok, then you will be able to browse your want to the folder. I suggest when you find the folder that you create a shortcut to it on the desktop

NOTE 2 the 'user name' in the above paths is your WINDOWS login user name, eg Administrator

note 3 these shortcuts assume your windows is installed on 'C' drive

and if the mod you want to use is from an EARLIER sins/entrenchment version place the mod in the mods folder FOR THAT version eg mods-entrenchment v1.03, then download and run my mods updater from the latest version archive which will have the same number as the vanilla sins version number, and AFTER updating the mod(s) to the current version for any mods of pre 1.04 entrenchment ALSO run the manifest maker on ENTITY manifests on EACH of the mods EXCEPT for total conversion mods

harpo

Reply #67 Top

Perhaps I should have worded it better.  I am trying to update two maps to Rebellion using your map updating program.  the maps are 5-star fortresses and The Hub2 specifically.  As i stated I looked high and low into My local and locallow folders and there is not a folder for ironclad/sins rebellion.  If I can, I will make a folder there but I dont know what it should be named nor what needs to be in it.

Reply #68 Top

if you are updating the maps to rebellion, PUT the maps in the rebellion galaxyforge folder, then run the map updater, click on the rebellion button(if you have BOTH rebellion AND sins trinity/(vanilla/ent/dip) installed) if you only have rebellion then you will NOT see either the sins/trinity OR rebellion buttons, the find the galaxies button then the fix the galaxies button then the exit button.

harpo

 

Reply #69 Top

Thanks for releasing the new version, Harpo.  It can find my maps, but when I click on "Fix Found Galaxies"  I get "Run Time Error '9', Subscript Out of Range".  Also, I do have both Rebellion and Trinity installed, but I don't see those two extra buttons.  Could it be that my version of Trinity was not installed via Steam but by Impulse?

 

Reply #70 Top

odd, as MY trinity/sins/ent/dip (and I do NOT have the steam trinity) are also impulse and it finds them no probs(and my utils use the registry to locate the folders) and I did the final development/testing in a win7 64bit ultimate 32gb ram system and have run it from a folder on the desktop with ALL the files from the rar in the folder.

and the ONLY wet program I have IS rebellion.

the error 9 is to do with array size and trying to access an array element beyond the size of the array and the only part of the code that might be involved and is new is to do with the remove extranious lines and multiline detect to replace

dirtysanchezz, which windows version & bitage(32/64) did you run it on? and which maps were you trying to run it on?

harpo

Reply #71 Top

I'm on Win XP SP3 32 bit.  If you want to give it a try on your rig, here's a link to my maps:

http://tinyurl.com/sins15

(Of course, I'd be happy to receive an email with the updated maps :D )

Reply #72 Top

dirtysanchezz, just extracted all your maps from the file into a new folder on my primary dev machine(xp32bitsp3), ran the map updater, all 59 maps updated, then rared the folder, dropboxed it

now it is up to you to download and confirm that all were correctly updated

harpo

+1 Loading…
Reply #73 Top

Thank you very much, Harpo.  Now that I'm off work (last two nights, 10.5 hr shifts), I'll have a chance to check it out!

+1 Loading…
Reply #74 Top

I dont have trinity installed on this computer, and the buttons are not there, and i put the files into the correct folder but i still get a Path not found error.  Its no big deal though, I'll keep messing around until i finally get it working :P

Reply #75 Top

k1 harpo and dirty sanchezz