PortableApps.com wins big in the 2009 Community Choice Awards and hits 100 million app downloads!

Hedgewars Portable 0.9.12 Development Test 4

dagardner's picture
Submitted by dagardner on June 17, 2009 - 7:32am

Application: Hedgewars
Category: Games
Description: Hedgewars is a turn based strategy game but the real buzz is from watching the devastation caused by those pesky hedgehogs with those fantastic weapons - sneaky little blighters with a bad attitude!

Download Hedgewars Portable 0.9.12 Development Test 4 [70.7MB download / 100MB installed]
(MD5: 8eb3ac40fcd464ad4c50f36fec13d618)

Release Notes:
Development Test 4 (2009-10-28):

  • Updated to latest release of Hedgewars 0.9.12

Development Test 3 (2009-07-08):

Test Release 3 (2009-06-24):

  • Added default INI to use full screen for game when first opened
  • Upgraded to PortableApps.com Installer 0.91.4
  • Uploaded to MediaFire as requested

Test Release 2 (2009-06-19):

  • Fixed backup of settings
  • Upgraded to PortableApps.com Installer 0.91.3
  • Added more icon sizes to appicon.ico

Test Release 1 (2009-06-17): Initial Release


( categories: )

Hmm

Would it be kosher for me to rename the .hedgewars dir in the user directory then move from Data\setting to the user directory then reverse things when I'm done? Is that even possible?

That isn't my desired solution. But I think it would be a lot easier than a custom build or getting the Hedgewar devs to modify the program.

Let me know what you think.

Without knowing the specifics

Without knowing the specifics of the app, it would be an entirely kosher thing to do as you suggest, and is indeed the way it's usually done...

Example?

Could you point me to a PortableApp that does it that way? I tried to do this with FreeCiv, before I found a way to redirect, but I couldn't get it to work correctly.

Redirecting?

Have you tried to redirect the "Home" environment variable before launching Hedgewars?
Something like the following might help (my Dia launcher uses this):

System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("HOME", "$SETTINGSDIRECTORY").r0'

Yes

That was the first thing I tried. That is what I was able to do for FreeCiv to change the save location, and I simple modified that launcher for Hedgewars. Unfortunately, it didn't work. If you have a chance, give it a try, maybe I did something wrong.

You might make more headway

You might make more headway if you can contact the devs for Qt, and find out how exactly that function determines the home directory.

Yeah...

I thought about that, but Qt doesn't provide free support, at least I couldn't find anyway to do it via the Trolltech website. If you know how to contact the Qt developers, let me know, and I'll contact them.

This is what the QDir::homePath() documentation says:

Under Windows this function will return the directory of the current user's profile. Typically, this is:

C:/Documents and Settings/Username

Use the toNativeSeparators() function to convert the separators to the ones that are appropriate for the underlying operating system.

If the directory of the current user's profile does not exist or cannot be retrieved, the following alternatives will be checked (in the given order) until an existing and available path is found:

  1. The path specified by the USERPROFILE environment variable.
  2. The path formed by concatenating the HOMEDRIVE and HOMEPATH environment variables.
  3. The path specified by the HOME environment variable.
  4. The path returned by the rootPath() function (which uses the SystemDrive environment variable)
  5. The C:/ directory.

I'm curious as to whether that list is how it determines the homePath (it seems silly that it would check a fixed path then USERPROFILE), or what it does if the user profile isn't defined (which is what it says). I tried overriding USERPROFILE, but I didn't have any luck (I'm not entirely sure that is even possible).

The HOME environment variable is listed, but it is third on the list.

New Test Release

Give it a try and let me know if there is anything I need to fix.

Feedback

Thanks for this = ) I was able to run without any major issues though I had to change to full screen to play the game properly. Regshot below:

Regshot 1.8.2
Comments:
Datetime:2009/6/20 01:19:52  ,  2009/6/20 01:23:53
Computer:TOWER_7200 , TOWER_7200
Username: , 

----------------------------------
Keys added:1
----------------------------------
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked

----------------------------------
Values added:7
----------------------------------
HKLM\SYSTEM\ControlSet001\Services\kmixer\Enum\0: "SW\{b7eafdc0-a680-11d0-96d8-00aa0051e51d}\{9B365890-165F-11D0-A195-0020AFD156E4}"
HKLM\SYSTEM\ControlSet001\Services\swmidi\Enum\0: "SW\{6c1b9f60-c0a9-11d0-96d8-00aa0051e51d}\{9B365890-165F-11D0-A195-0020AFD156E4}"
HKLM\SYSTEM\CurrentControlSet\Services\kmixer\Enum\0: "SW\{b7eafdc0-a680-11d0-96d8-00aa0051e51d}\{9B365890-165F-11D0-A195-0020AFD156E4}"
HKLM\SYSTEM\CurrentControlSet\Services\swmidi\Enum\0: "SW\{6c1b9f60-c0a9-11d0-96d8-00aa0051e51d}\{9B365890-165F-11D0-A195-0020AFD156E4}"
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\ShellNoRoam\MUICache\G:\PortableApps\HedgewarsPortable\HedgewarsPortable.exe: "Hedgewars Portable"
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\ShellNoRoam\MUICache\G:\PortableApps\HedgewarsPortable\App\Hedgewars\bin\Hedgewars.exe: "Hedgewars"
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\ShellNoRoam\MUICache\G:\PortableApps\HedgewarsPortable\App\Hedgewars\bin\hwengine.exe: "hwengine"

----------------------------------
Values modified:11
----------------------------------
HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed: 4E 17 36 F6 29 23 30 15 AC EC 16 6F 32 85 12 64 B4 0B A0 2F 5F CE 38 7C 7A 8F 26 2E 99 2D 5E 5B 19 6B 92 C8 9B 71 7B 53 DA 54 79 F5 09 8B AC 0B DF F9 F2 39 FE B1 B8 F6 09 E4 84 7F 6E A5 83 7C 70 E1 8E E1 DE 38 31 EB 2C 18 FD 61 DE 47 F1 FB
HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed: 68 85 7E DB 87 B2 2B 7F 3B 23 33 9D 4A E3 E1 FD 27 D8 93 89 1E 50 87 C2 84 74 67 04 AD 0E 37 3D AA 5C 21 78 E9 E9 C1 37 5A 67 AC 61 FA 81 95 9E 08 A7 7A 8F 05 16 89 7E F3 E0 B9 32 48 5B 72 11 D7 51 82 5C 85 7B 62 01 F6 B7 47 5E 66 5F 9C DE
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher\TracesProcessed: 0x00000121
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Prefetcher\TracesProcessed: 0x0000012D
HKLM\SYSTEM\ControlSet001\Services\kmixer\Enum\Count: 0x00000000
HKLM\SYSTEM\ControlSet001\Services\kmixer\Enum\Count: 0x00000001
HKLM\SYSTEM\ControlSet001\Services\kmixer\Enum\NextInstance: 0x00000000
HKLM\SYSTEM\ControlSet001\Services\kmixer\Enum\NextInstance: 0x00000001
HKLM\SYSTEM\ControlSet001\Services\swmidi\Enum\Count: 0x00000000
HKLM\SYSTEM\ControlSet001\Services\swmidi\Enum\Count: 0x00000001
HKLM\SYSTEM\ControlSet001\Services\swmidi\Enum\NextInstance: 0x00000000
HKLM\SYSTEM\ControlSet001\Services\swmidi\Enum\NextInstance: 0x00000001
HKLM\SYSTEM\CurrentControlSet\Services\kmixer\Enum\Count: 0x00000000
HKLM\SYSTEM\CurrentControlSet\Services\kmixer\Enum\Count: 0x00000001
HKLM\SYSTEM\CurrentControlSet\Services\kmixer\Enum\NextInstance: 0x00000000
HKLM\SYSTEM\CurrentControlSet\Services\kmixer\Enum\NextInstance: 0x00000001
HKLM\SYSTEM\CurrentControlSet\Services\swmidi\Enum\Count: 0x00000000
HKLM\SYSTEM\CurrentControlSet\Services\swmidi\Enum\Count: 0x00000001
HKLM\SYSTEM\CurrentControlSet\Services\swmidi\Enum\NextInstance: 0x00000000
HKLM\SYSTEM\CurrentControlSet\Services\swmidi\Enum\NextInstance: 0x00000001
HKU\S-1-5-21-796845957-789336058-839522115-500\SessionInformation\ProgramCount: 0x00000003
HKU\S-1-5-21-796845957-789336058-839522115-500\SessionInformation\ProgramCount: 0x00000001

----------------------------------
Files [attributes?] modified:2
----------------------------------
C:\Documents and Settings\Administrator\ntuser.dat.LOG
C:\WINDOWS\system32\config\software.LOG

----------------------------------
Total changes:21
----------------------------------

Live to learn. Learn to live. - JWSII

Full screen

That problem exists in the standard install. I don't know why the default settings don't work correctly. I could add a default set of settings to the installer, but the screen size and resolution is part of that, and I'm not sure whether that could cause problems.

Hmm..

Probably best to leave it how it then for now and just include a note in the original post stating that this is a known bug. Hopefully by the time this gets to pre-release or the Hedge Wars gets to 1.0 there has been a fix figured out.

Live to learn. Learn to live. - JWSII

no download?

Is there a reason why i can't download the game?

May the Shwartz be with you

The download is the Test

The download is the Test Release 2 link in the release notes. An unconventional way of doing it true. You have to click the link, takes you to file dropper, click download file then fill in the captcha thing.

@dagardner: I recommend using mediafire for free file hosting as theres not captchas and supports every download accelerator I've tried on it. Also with your original post can I recommend using something similar to this as a template. That way it avoids confusion such as has happened with App Guy here. Cheers.

Live to learn. Learn to live. - JWSII

yeah didnt work

works now but it didn't before, the link cam back to a error page.

May the Shwartz be with you

Mediafire

I'll use mediafire the next time I do a release. Right now, the only change that I know of that needs to be made is to upgrade to the latest PortableApps.com Installer

Oops..

Sorry I didn't follow the standard format. I'll fix it later.

Thanks

No worries

It's not mandatory at the Development Test Release stage. Thank you for changing it though as it makes it easier to use. Also thanks for takin gmy advice about using mMediafire.com. Will help when we all download Hedge Wars and FreeCiv for "testing" Eye-wink

Live to learn. Learn to live. - JWSII

Test Release 3

Give it a go and let me know if other changes are needed.

Works a charm

Great work mate = )

Live to learn. Learn to live. - JWSII

Can anyone tell me?

Aside from the uploaded file name, is there anything that I need to change about this to get it into the offical PortableApps.com release format? I've looked at what is there, and I think that I have it all; I want to double check before I change the file name (since that would be the only change that I am making) and upload again.

Thanks,

Andy

Thanks for making Hedgewars a

Thanks for making Hedgewars a portable app.

wont work

i got different check sum

60\/\/ 2 /\/\3 4 1 4/\/\ 12007
bow to me for i am root

Uploaded again

I downloaded the file linked to, and it did have a different MD5. I have no idea why. I uploaded the file again and updated the link. Let me know if there are any other problems.

Thanks,

Andy

thanks

ill try to download again

60\/\/ 2 /\/\3 4 1 4/\/\ 12007
bow to me for i am root

Hey dagardner

Haven't heard from you in a while. Just a note that Hedgewars has been updated to 0.9.12

Hope all is well

Live to learn. Learn to live. - JWSII

I've downloaded it

But I haven't had a chance to update it yet.

I've been busy with work and such, so I haven't had time to mess with PortableApps much.

I'll see if I can get it done later this week. I'm hoping it is simply a matter of dropping in the new files since it is a point release.

Thanks for the reminder.

Andy

Updated

I updated the download with Hedgewars 0.9.12.

Let me know if there are any problems.