Ancient Empires Elysium
Welcome Guest [Log In] [Register]
Welcome to Ancient Empires Elysium. We hope you enjoy your visit.

You're currently viewing our forum as a guest. Guest posting is allowed here. Registering will also give you the option to send private messages and access the shout box.



Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
AEEaddreply2
AEE: GRAND CAMPAIGN Installation Process, Link to AEE, Fixes, Patches.; How to install AEE.
Topic Started: Oct 13 2009, 07:57 AM (35,934 Views)
limes
Member Avatar
AEE Censor
Hmmm. MAJ Pain, how's going? :):)
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
MAJ Pain
AEE Civis Romanus
Hoooooooooooah!!!!!!!!!!!!!!!!!!!!!!!!
I figured it out! :)
Here is what you need to do...
1. Copy intro to my documents/AppData/Local/Temp
2. Run zip2exe zip based installer generator
3. AEE Setup.exe will be located in my documents/AppData/Local/Temp (the same folder you copied the intro to)

Check your email for the updated Modern.nsh
Posted Image
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
Ok. I'll try, but I see that file test.txt is not present anymore in your script.

I changed extension: "File BI_Intro_640x480.txt" to File BI_Intro_640x480.wmv because installer couldn't find file.

Finally I've got

!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
Section: "Installer"
SetOutPath: "$INSTDIR\bi\data\fmv\"
File: "BI_Intro_640x480.wmv" 46846588 bytes

Delete: "$INSTDIR\data\menu\Dump0000.m1v"
Delete: "$INSTDIR\data\world\maps\base\map.rwm"
Delete: "$INSTDIR\data\world\maps\campaign\imperial_campaign\map.rwm"
!insertmacro: MUI_STARTMENU_WRITE_BEGIN
!insertmacro: end of MUI_STARTMENU_WRITE_BEGIN
CreateDirectory: "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut expects 2-8 parameters, got 16.
Usage: CreateShortCut shortcut_name.lnk shortcut_target [parameters [icon_file [icon index [showmode [hotkey [comment]]]]]]
showmode=(SW_SHOWNORMAL|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED)
hotkey=(ALT|CONTROL|EXT|SHIFT)|(F1-F24|A-Z)
!include: error in script: "C:\Program Files (x86)\NSIS\Contrib\zip2exe\Modern.nsh" on line 130
Error in script "C:\Users\limes\AppData\Local\Temp\zne1E20.tmp" on line 7 -- aborting creation process
(source ZIP size was 644698118 bytes)



I believe that below part of code is responsible. I disabled it and installer runs.

;Create shortcuts
; CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
;CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Play AEE.lnk" "$INSTDIR\RomeTW-BI.exe" "-show_err -mod:" "${NSISDIR}\Contrib\Graphics\Icons\AEE.ico" "" SW_SHOWMAXIMIZED "" \
;CreateShortCut "$DESKTOP\Ancient Empires Elysium.lnk" "$INSTDIR\RomeTW-BI.exe" "-show_err -mod:" "${NSISDIR}\Contrib\Graphics\Icons\AEE.ico" "" SW_SHOWMAXIMIZED "" \
;"Use to launch MOD AEE"
Edited by limes, Oct 25 2009, 04:43 PM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
BINGO. Intro is unpacked and placed in correct place. The only thing we need is SHORTCUT now :):).

Thanks MAJ Pain.

I copied/pasted Shortcut Section and Uninstaller Section from last good "Modern" script. So far Zip Based Installer runs. Installer will be created for 10 minutes. We'll see.
Edited by limes, Oct 25 2009, 04:57 PM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
MAJ Pain
AEE Civis Romanus
doh! :-/ :unsure:
I forgot to change .txt to .wmv before I sent it back to you lol. I used a text file to test it out.

!include: error in script: "C:\Program Files (x86)\NSIS\Contrib\zip2exe\Modern.nsh" on line 130
Error in script "C:\Users\limes\AppData\Local\Temp\zne1E20.tmp" on line 7 -- aborting creation process

;CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Play AEE.lnk" "$INSTDIR\RomeTW-BI.exe" "-show_err -mod:" "${NSISDIR}\Contrib\Graphics\Icons\AEE.ico" "" SW_SHOWMAXIMIZED "" \

Error was caused by an extra backslash at the end of that line :s lol

I sent you the corrected file in your email :)
Posted Image
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
I copied/pasted Shortcut Section and Uninstaller Section from last good "Modern" script. So far Zip Based Installer runs. Installer will be created for 10 minutes. We'll see.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
Spartacus
AEE Aedilis Plebis
10 MINUTES?????
Posted Image


Win 7 Enterprise 64-bit Intel(pentium) D CPU 2.8Gh
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
Yes. I made 150 installers this weekend. Every time sth was wrong. Nullsoft software install creator prepares it in 10 minutes.

AEE install. process will last 5 minutes.
Edited by limes, Oct 25 2009, 05:08 PM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
Ok. I must go. Only 4 hours of sleep left before I will go to work.

Final info. So far:

Installer generated 3 warnings

3 warnings:
Name: specified multiple times, wasting space (C:\Program Files (x86)\NSIS\Contrib\zip2exe\Modern.nsh:30)
InstallDir: specified multiple times. wasting space (C:\Program Files (x86)\NSIS\Contrib\zip2exe\Modern.nsh:39)
Uninstaller script code found but WriteUninstaller never used - no uninstaller will be created.
(source ZIP size was 644698118 bytes)


Resume:

BI_Intro is unpacked and installed - OK,
Uninstaler wasn't created,
Shortcut was created, but
In shortcut:
- path line is ok: ""E:\Activision\Rome - Total War\RomeTW-BI.exe" -show_err -mod:"
- "starting folder" (line below path line, i've got polish interface, so I can only translate polish line to english) is wrong:

Should be - "E:\Activision\Rome - Total War"

Is - "E:\Activision\Rome - Total War\bi\data\fmv"

G'nite friends. We'll talk tomorrow.
Edited by limes, Oct 25 2009, 05:24 PM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
MAJ Pain
AEE Civis Romanus
3 warnings:
Name: specified multiple times, wasting space (C:\Program Files (x86)\NSIS\Contrib\zip2exe\Modern.nsh:30)
InstallDir: specified multiple times. wasting space (C:\Program Files (x86)\NSIS\Contrib\zip2exe\Modern.nsh:39)
Uninstaller script code found but WriteUninstaller never used - no uninstaller will be created.
(source ZIP size was 644698118 bytes)

I took out the uninstaller because I do not have a list of AEE files... so I could not write delete commands. And really an uninstaller would be impractical. If the user wants to delete AEE the best way is to reinstall R:TW from scratch.

The first 2 problems do not matter. You could delete those 2 commands from base.nsh if you really wanted to but it doesn't matter.

The starting folder line should not matter, since the target line is a fully qualified path.
Posted Image
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
MAJ Pain
Oct 25 2009, 05:57 PM
I took out the uninstaller because I do not have a list of AEE files... so I could not write delete commands. And really an uninstaller would be impractical. If the user wants to delete AEE the best way is to reinstall R:TW from scratch.

The first 2 problems do not matter. You could delete those 2 commands from base.nsh if you really wanted to but it doesn't matter.

The starting folder line should not matter, since the target line is a fully qualified path.


Ok. As far as we don't need uninstaller and we can ignore minor problems (like duplicated names) - for sure we need shortcut which correct path line and starting position line, too.

I try check relevant information before I post :). Wrong starting position line generates unknown error without any further information (at least in Vista). The game won't run.
Edited by limes, Oct 26 2009, 02:50 AM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
JOHANNES
AEE Civis Romanus
encourage in your hard work with the instalation
p_off profile2 quote3 p_top
 
MAJ Pain
AEE Civis Romanus
@ limes
Check your email I fixed it :)
the trick is to use the setOutPath command just before the createShortCut command
Posted Image
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
Whoaaaa. Wonderful!!! :). I'll try it for a while.
Edited by limes, Oct 26 2009, 03:11 PM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
Spartacus
AEE Aedilis Plebis
So?

Success or what?
Posted Image


Win 7 Enterprise 64-bit Intel(pentium) D CPU 2.8Gh
p_off profile2 quote3 p_top
 
Preskinn
AEE Foederatus
Waiting for that magic released topic
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
Success. Everything is ok with installer now. It installs files, but have to check how game works after installation. Sometimes Vista makes me crazy. Sometimes AEE works with -show_err command, sometimes not.

Vista users.

Remember. After installation you must reboot your machines. In other case you'll get CTD when end turn button is pressed.
Edited by limes, Oct 27 2009, 08:43 AM.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
MAJ Pain
AEE Civis Romanus
limes
Oct 27 2009, 08:35 AM
Success. Everything is ok with installer now. It installs files, but have to check how game works after installation. Sometimes Vista makes me crazy. Sometimes AEE works with -show_err command, sometimes not.

Vista users.

Remember. After installation you must reboot your machines. In other case you'll get CTD when end turn button is pressed.
I have emailed you a new script prompting the user to restart the computer.
Anything to protect users and make it as dummy proof as possible :)
Posted Image
p_off profile2 quote3 p_top
 
limes
Member Avatar
AEE Censor
Very very good my friend. I'll make new installer soon.
Posted Image[

German Death Camps
p_off profile2 quote3 p_top
 
JOHANNES
AEE Civis Romanus
GREAT NEWS
p_off profile2 quote3 p_top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create your own social network with a free forum.
Go to Next Page
« Previous Topic · Ancient Empires Elysium: Grand Campaign (AEE:GC) · Next Topic »
AEEaddreply2