Auto Downloading for Galaxy Forge-made Custom maps?

Is Rebellion going to implement auto-downloading for Galaxy Forge-made custom maps?

 

In the meantime I'm trying to figure out what the install path variables would be for Rebellion.  Right now my Galaxy Forge folder is located at (Win XP):

C:\Documents and Settings\<User Name>\My Documents\My Games\Ironclad Games\Sins of a Solar Empire Rebellion\GalaxyForge

In an auto-install file creator, I would set the installation path to be: 

%localappdata%\Ironclad Games\Sins of a Solar Empire\GalaxyForge

What system path variables would I use to auto-install into a My Documents or My Games folder?  I don't think Windows has a default variable for that.

13,106 views 5 replies
Reply #1 Top

Doesn't look like a there is an environment variable, from a Windows user profile, that points to your "My Documents" folder.

Your best bet would be to derive the location from %USERPROFILE% which should isolate you from the difference between XP and Vista/Win7.

In an auto-install file creator...

If you're writing this in C/C++, and you're using the Windows API, then take a look at the SHGetSpecialFolderPath() API, passing it CSIDL_PERSONAL should retrieve your My Documents folder.

http://msdn.microsoft.com/en-us/library/windows/desktop/bb762204%28v=vs.85%29.aspx

 

Reply #2 Top

made a simple script with AutoIt and converted it to exe in about 2 minutes. Downloaded maps from multiple servers. Just made empty txt files for testing, Tested Vista/7, test XP tomorrow (@MyDocumentsDir supposed to be OS friendly)

 

$MapLocation = @MyDocumentsDir & "\My Games\Ironclad Games\Sins of a Solar Empire Rebellion\GalaxyForge\"

InetGet("http://soase.x90x.net/MapsRebellion/map1.galaxy", $MapLocation & "map1.galaxy")
InetGet("http://soase.x90x.net/MapsRebellion/map2.galaxy", $MapLocation & "map2.galaxy")
InetGet("http://soase.x90x.net/MapsRebellion/map3.galaxy", $MapLocation & "map3.galaxy")
InetGet("http://soase.x90x.net/MapsRebellion/map4.galaxy", $MapLocation & "map4.galaxy")
InetGet("http://soase.x90x.net/MapsRebellion/map5.galaxy", $MapLocation & "map5.galaxy")
InetGet("http://soase.x90x.net/MapsRebellion/map6.galaxy", $MapLocation & "map6.galaxy")
InetGet("http://soase.x90x.net/MapsRebellion/map7.galaxy", $MapLocation & "map7.galaxy")
InetGet("http://dl.dropbox.com/u/65067669/Maps/map8.galaxy", $MapLocation & "map8.galaxy", 1)
InetGet("http://dl.dropbox.com/u/65067669/Maps/map9.galaxy", $MapLocation & "map10.galaxy", 1)
InetGet("http://dl.dropbox.com/u/65067669/Maps/map10.galaxy", $MapLocation & "map11.galaxy", 1)
InetGet("http://dl.dropbox.com/u/65067669/Maps/map11.galaxy", $MapLocation & "map11.galaxy", 1)

MsgBox(0, "Done","Download Complete!")

 

 

It will bork if the save to dir is not there but you can add choose dir if error = 1 or create dir

+1 Loading…
Reply #3 Top

Nice to see you back on the forums myfist0! :thumbsup:

We need experienced people like you to help us getting the hang of things. Now more than ever. 

Reply #4 Top

Thanks,

you're on your own with rebellion though  >_>

Reply #5 Top

I asked about it on the ClickTeam community forums (makers of the auto install program maker, "Install Creator".

A poster said that this path should work for XP, Vista, and Win7.  For Vista and Win7 it just finds the "Documents" folder and not "My Documents".

#mydocuments#\My Games\Ironclad Games\Sins of a Solar Empire Rebellion\GalaxyForge