Author Topic: Impossible Escape  (Read 13620 times)

Fragamemnon

  • Visitor
  • *
  • Posts: 13
    • Yahoo Instant Messenger - cjdoyle1990@yahoo.com
    • View Profile
    • http://www.xanga.com/billybobjimmyjoe90
    • Email
Impossible Escape
« on: 2005-05-22, 09:08:59 AM »
I have already made this game, but, when I use the Install packager and actually install the game, the game won't play on my computer and it displays the error message,"Error loading map 1, 2, 3, 4, and last level. then the message "player sprite not found" pops up.   Please help me





                                  Fragamemnon >:(


P.S. if u want to know more about the game go to this adress http://www.xanga.com/home.aspx?user=billybobjimmyjoe90

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
  • ChameleonMan Progress: DONE!
    • MSN Messenger - billybob884@hotmail.com
    • AOL Instant Messenger - billybob884
    • View Profile
    • Email
Impossible Escape
« Reply #1 on: 2005-05-22, 10:44:08 AM »
it might be helpful if you posted the game zipped (not the installer, the other files)
-- Mike "billybob884" McDermott

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Impossible Escape
« Reply #2 on: 2005-05-22, 05:28:43 PM »
Have you made sure that it works propperly before putting it in the install packager outside of GameDev?  By this, I mean, have you used the ability to create a shortcut to the desktop and play it from there?
Edward Dassmesser

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Impossible Escape
« Reply #3 on: 2005-05-22, 05:30:37 PM »
Oh, and alos, I suppose, you have made sure it works inside GameDev too, if not outside? (By pressing the play button).  And if not, in the player settings and inventory, set the default map.

If the game works under all of these circumstances, sending the project would not really help, as the problem is then with the installer script.
Edward Dassmesser

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Impossible Escape
« Reply #4 on: 2005-05-22, 05:31:44 PM »
Oh, sorry.  One more thing.  Make sure all of your files are in the same directory.  This includes all maps, sounds, graphics, gdp, script, everything, otherwise the installer script doesn't work propperly.  This is probably the problem, now that I think of it.
Edward Dassmesser

billybob884

  • Contributor
  • Fanatic
  • **
  • Posts: 355
  • ChameleonMan Progress: DONE!
    • MSN Messenger - billybob884@hotmail.com
    • AOL Instant Messenger - billybob884
    • View Profile
    • Email
Impossible Escape
« Reply #5 on: 2005-05-22, 06:33:59 PM »
.... well then....   try that :o  

heh, i'll save my comments next time
-- Mike "billybob884" McDermott

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move." :: Hitchhiker's Guide to the Galaxy

AjVback

  • Visitor
  • *
  • Posts: 12
    • View Profile
    • Email
Apostraphe's
« Reply #6 on: 2005-05-22, 07:16:34 PM »
Another problem I have found when trying to compile games into .exe's is if the file name has an apostraphe(  '  ) in it. This causes an error in the actual installing of the game; it trys to put a shourtcut in the start menu and cant because of the '. You could check a computer manual for a list of other illegal filenames.
-Aaron Snoswell

Fragamemnon

  • Visitor
  • *
  • Posts: 13
    • Yahoo Instant Messenger - cjdoyle1990@yahoo.com
    • View Profile
    • http://www.xanga.com/billybobjimmyjoe90
    • Email
Impossible Escape
« Reply #7 on: 2005-05-22, 08:02:12 PM »
I've tested it in and out of the game, It works, but after I install it won't work and it is still giving the same error




                          Chris

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Impossible Escape
« Reply #8 on: 2005-05-23, 06:07:33 AM »
In case you missed it, I will re-iterate durnurd's last suggestion -- make sure all your project files are in one directory.  If they are not, the install packager will not work properly.

Fragamemnon

  • Visitor
  • *
  • Posts: 13
    • Yahoo Instant Messenger - cjdoyle1990@yahoo.com
    • View Profile
    • http://www.xanga.com/billybobjimmyjoe90
    • Email
Impossible Escape
« Reply #9 on: 2005-05-23, 03:38:11 PM »
I have all of the files in the same directory now, but now the nsi file isn't compiling into the installer

Fragamemnon

  • Visitor
  • *
  • Posts: 13
    • Yahoo Instant Messenger - cjdoyle1990@yahoo.com
    • View Profile
    • http://www.xanga.com/billybobjimmyjoe90
    • Email
Impossible Escape
« Reply #10 on: 2005-05-23, 03:40:52 PM »
this is the error the log has "Error in script "C:\Documents and Settings\Chris\My Documents\Impossible Escape32.nsi" on line 42 -- aborting creation process"




               Chris

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Impossible Escape
« Reply #11 on: 2005-05-23, 07:07:01 PM »
If you have moved files, try deleting the nsi file and re-creating it with the wizard, and then see if it compiles.  Of course, if you have moved files, you should also make sure the project still works.  There's a right way to move files and a wrong way to move files when it comes to GameDev projects.

Fragamemnon

  • Visitor
  • *
  • Posts: 13
    • Yahoo Instant Messenger - cjdoyle1990@yahoo.com
    • View Profile
    • http://www.xanga.com/billybobjimmyjoe90
    • Email
Impossible Escape
« Reply #12 on: 2005-05-23, 09:32:30 PM »
I'm sorry if i'm annoying you guys with the problem, but it didn't work,  just in case you need it here is the whole compiler log



MakeNSIS v2.06 -

Processing config:
Processing plugin dlls: "C:\Program Files\NSIS\Plugins\*.dll"
 - advsplash::show
 - Banner::destroy
 - Banner::getWindow
 - Banner::show
 - BgImage::AddImage
 - BgImage::AddText
 - BgImage::Clear
 - BgImage::Destroy
 - BgImage::Redraw
 - BgImage::SetBg
 - BgImage::SetReturn
 - BgImage::Sound
 - Dialer::AttemptConnect
 - Dialer::AutodialHangup
 - Dialer::AutodialOnline
 - Dialer::AutodialUnattended
 - Dialer::GetConnectedState
 - InstallOptions::dialog
 - InstallOptions::initDialog
 - InstallOptions::show
 - LangDLL::LangDialog
 - Math::Script
 - nsExec::Exec
 - nsExec::ExecToLog
 - nsExec::ExecToStack
 - nsisdl::download
 - nsisdl::download_quiet
 - splash::show
 - StartMenu::Init
 - StartMenu::Select
 - StartMenu::Show
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - VPatch::vpatchfile

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\Documents and Settings\Chris\Desktop"

Processing script file: "C:\Documents and Settings\Chris\Desktop\Impossible Escape.nsi"
!include: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
NSIS Modern User Interface version 1.72 -  2002-2005 Joost Verburg (C:\Program Files\NSIS\Contrib\Modern UI\System.nsh:11)
!define: "MUI_VERBOSE"="3"
!include: closed: "C:\Program Files\NSIS\Contrib\Modern UI\System.nsh"
!include: closed: "C:\Program Files\NSIS\Include\MUI.nsh"
!include: "C:\Program Files\NSIS\Include\UpgradeDLL.nsh"
!define: "UPGRADEDLL_INCLUDED"=""
!include: closed: "C:\Program Files\NSIS\Include\UpgradeDLL.nsh"
Name: "Impossible Escape"
OutFile: "Impossible EscapeInst.exe"
InstallDir: "$PROGRAMFILES\Impossible Escape"
InstallRegKey: "HKLM\SOFTWARE\Impossible Escape\Install_Dir"
!define: "MUI_FINISHPAGE_NOAUTOCLOSE"=""
!insertmacro: MUI_PAGE_WELCOME
!insertmacro: end of MUI_PAGE_WELCOME
!insertmacro: MUI_PAGE_DIRECTORY
!insertmacro: end of MUI_PAGE_DIRECTORY
!insertmacro: MUI_PAGE_INSTFILES
!insertmacro: end of MUI_PAGE_INSTFILES
!insertmacro: MUI_PAGE_FINISH
!insertmacro: end of MUI_PAGE_FINISH
!insertmacro: MUI_UNPAGE_CONFIRM
!insertmacro: end of MUI_UNPAGE_CONFIRM
!insertmacro: MUI_UNPAGE_INSTFILES
!insertmacro: end of MUI_UNPAGE_INSTFILES
!insertmacro: MUI_LANGUAGE
!insertmacro: end of MUI_LANGUAGE
Section: "Required Components"
!define: "VBFILESDIR"="C:\Program Files\GameDev\Tutorial"
!insertmacro: UpgradeDLL
!insertmacro: macro "UpgradeDLL" requires 3 parameter(s), passed 4!
Error in script "C:\Documents and Settings\Chris\Desktop\Impossible Escape.nsi" on line 42 -- aborting creation process



here is the Nsi File


; Impossible Escape.nsi
;
; This script will install the GameDev game Impossible Escape.
; Requires NSIS version 2.0 or later to compile
; http://nsis.sf.net/
;
; See http://gamedev.sf.net/ for GameDev details

!include "MUI.nsh"
!include "UpgradeDLL.nsh"

; The name of the installer
Name "Impossible Escape"

; Output installer EXE name
OutFile "Impossible EscapeInst.exe"

; Default installation directory
InstallDir "$PROGRAMFILES\Impossible Escape"

; Remember install location if we installed previously
InstallDirRegKey HKLM "SOFTWARE\Impossible Escape" "Install_Dir"

!define MUI_FINISHPAGE_NOAUTOCLOSE

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_DIRECTORY
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

!insertmacro MUI_UNPAGE_CONFIRM
!insertmacro MUI_UNPAGE_INSTFILES

!insertmacro MUI_LANGUAGE "English"

Section "Required Components"

   !define VBFILESDIR "C:\Program Files\GameDev\Tutorial"

   ; VB Runtime Files
   CopyVBSysFiles:  
   !insertmacro UpgradeDLL ${VBFILESDIR}\Comcat.dll $SYSDIR\Comcat.dll $SYSDIR
   !insertmacro UpgradeDLL ${VBFILESDIR}\Msvbvm60.dll $SYSDIR\Msvbvm60.dll $SYSDIR
   !insertmacro UpgradeDLL ${VBFILESDIR}\Oleaut32.dll $SYSDIR\Oleaut32.dll $SYSDIR
   !insertmacro UpgradeDLL ${VBFILESDIR}\Olepro32.dll $SYSDIR\Olepro32.dll $SYSDIR

   !define UPGRADEDLL_NOREGISTER
      !insertmacro UpgradeDLL ${VBFILESDIR}\Asycfilt.dll $SYSDIR\Asycfilt.dll $SYSDIR
      !insertmacro UpgradeDLL ${VBFILESDIR}\Stdole2.tlb $SYSDIR\Stdole2.tlb $SYSDIR
   !undef UPGRADEDLL_NOREGISTER

   ; Referenced Microsoft Files and ActiveX Controls
   !insertmacro UpgradeDLL ${VBFILESDIR}\Comdlg32.ocx $SYSDIR\Comdlg32.ocx $SYSDIR
   !insertmacro UpgradeDLL ${VBFILESDIR}\MSComCtl.ocx $SYSDIR\MSComCtl.ocx $SYSDIR

   ; Only increase DLL count on new installation
   IfFileExists $INSTDIR\GDPlay.exe skipAddSharedDLL
      Push $SYSDIR\Asycfilt.dll
      Call AddSharedDLL
      Push $SYSDIR\Comcat.dll
      Call AddSharedDLL
      Push $SYSDIR\Msvbvm60.dll
      Call AddSharedDLL
      Push $SYSDIR\Oleaut32.dll
      Call AddSharedDLL
      Push $SYSDIR\Olepro32.dll
      Call AddSharedDLL
      Push $SYSDIR\Stdole2.tlb
      Call AddSharedDLL
      ; Referenced Microsoft Files and ActiveX Controls
      Push $SYSDIR\Comdlg32.ocx
      Call AddSharedDLL
      Push $SYSDIR\MSComCtl.ocx
      Call AddSharedDLL
   skipAddSharedDLL:

   IfErrors 0 CopyAppExeFiles
   MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "An error occurred copying VB runtime files" IDRETRY CopyVBSysFiles
   MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to continue installing anyway?" IDNO EndInstall

   ; Set output path to the installation directory.
   CopyAppExeFiles:
   SetOutPath $INSTDIR
   SetOverwrite ifnewer

   ; Copy Game System files to destination
   File "C:\Program Files\GameDev\Tutorial\GDPlay.exe"
   ; Normally GDPlay.EXE is a registered EXE, but this is not a necessary step
   File "C:\Program Files\GameDev\Tutorial\BMDXCtls.dll"
   RegDLL "$INSTDIR\BMDXCtls.dll"
   File "C:\Program Files\GameDev\Tutorial\ScrHost.dll"
   RegDLL "$INSTDIR\ScrHost.dll"

   IfErrors 0 CopyGameDatFiles
   MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "An error occurred application files" IDRETRY CopyAppExeFiles
   MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to continue installing anyway?" IDNO EndInstall

   ; Copy Game Data files to destination
   CopyGameDatFiles:
   File "C:\Program Files\GameDev\Tutorial\*.*"

   IfErrors 0 CreateGameShortcut
   MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "An error occurred copying game data files" IDRETRY CopyGameDatFiles
   MessageBox MB_YESNO|MB_ICONQUESTION "Do you want to continue installing anyway?" IDNO EndInstall

   CreateGameShortcut:
   CreateDirectory "$SMPROGRAMS\Impossible Escape"
   CreateShortCut "$SMPROGRAMS\Impossible Escape\Play Impossible Escape.lnk" "$INSTDIR\GDPlay.exe" '"$INSTDIR\Impossible Escape.gdp" /p'
   CreateShortCut "$SMPROGRAMS\Impossible Escape\Uninstall Impossible Escape.lnk" "$INSTDIR\Uninst.exe"

   ; Store install location in case install runs again
   WriteRegStr HKLM "SOFTWARE\Impossible Escape" "Install_Dir" "$INSTDIR"
   ; Add un-install entry for Add/Remove Programs
   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Impossible Escape" "DisplayName" "Impossible Escape (remove only)"
   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Impossible Escape" "UninstallString" '"$INSTDIR\Uninst.exe"'

   WriteUninstaller "Uninst.exe"

   EndInstall:
SectionEnd

Section "Uninstall"
   MessageBox MB_OKCANCEL|MB_ICONEXCLAMATION "BMDXCtls.dll and ScrHost.dll will be unregistered and removed.$\r$\nIf you use The Scrolling Game Development Kit on this system you will have to re-register those files using regsvr32 or re-install GameDev, unless you have GameDev version 1.4 or later." IDCANCEL EndUninstall
   DeleteRegKey HKLM "SOFTWARE\Impossible Escape"
   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Impossible Escape"
   UnRegDLL "$INSTDIR\BMDXCtls.dll"
   UnRegDLL "$INSTDIR\ScrHost.dll"
   Delete "$INSTDIR\*.*"
   RMDir "$INSTDIR"
   Delete "$SMPROGRAMS\Impossible Escape\*.*"
   RMDir "$SMPROGRAMS\Impossible Escape"

   Push $SYSDIR\Asycfilt.dll
   Call un.DecrementSharedDLL
   Push $SYSDIR\Comcat.dll
   Call un.DecrementSharedDLL
   Push $SYSDIR\Msvbvm60.dll
   Call un.DecrementSharedDLL
   Push $SYSDIR\Oleaut32.dll
   Call un.DecrementSharedDLL
   Push $SYSDIR\Olepro32.dll
   Call un.DecrementSharedDLL
   Push $SYSDIR\Stdole2.tlb
   Call un.DecrementSharedDLL

   Push $SYSDIR\Comdlg32.ocx
   Call un.DecrementSharedDLL
   Push $SYSDIR\MSComCtl.ocx
   Call un.DecrementSharedDLL

   IfFileExists "$INSTDIR" 0 InstDirOK
   MessageBox MB_OK "Could not delete $INSTDIR" IDOK 0
   InstDirOK:
   IfFileExists "$SMPROGRAMS\Impossible Escape" 0 EndUninstall
   MessageBox MB_OK "Could not remove shortcut." IDOK 0
   EndUninstall:
SectionEnd

Function AddSharedDLL
   Exch $R1
   Push $R0
      ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
      IntOp $R0 $R0 + 1
      WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
   Pop $R0
   Pop $R1
FunctionEnd

Function un.DecrementSharedDLL
   Exch $R1
   Push $R0
   ReadRegDword $R0 HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
   StrCmp $R0 "" done
      IntOp $R0 $R0 - 1
      IntCmp $R0 0 rk rk uk
      rk:
      DeleteRegValue HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1
      Goto done
      uk:
      WriteRegDWORD HKLM Software\Microsoft\Windows\CurrentVersion\SharedDLLs $R1 $R0
   done:
   Pop $R0
   Pop $R1
FunctionEnd

durnurd

  • Lead Lemming
  • Expert
  • Fanatic
  • *****
  • Posts: 1234
  • Games completed so far: 0
    • MSN Messenger - durnurd@hotmail.com
    • View Profile
    • Find My Ed
Impossible Escape
« Reply #13 on: 2005-05-24, 01:12:08 AM »
The problem appears to be in copying the VB Runtime files to the installation program.  You have apparently defined the directory to get these files from on your computer to be "C:\program files\gamedev\tutorial".  It should be "C:\WINDOWS\system32"  (The bottom textbox, "Copy system files from:", on the install packager window).  Try that and see if it still has the same error.
Edward Dassmesser

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Impossible Escape
« Reply #14 on: 2005-05-24, 05:51:00 AM »
It seems to think that 4 parameters were passed to the UpgradeDLL line.  Try replacing this
Code: [Select]
!insertmacro UpgradeDLL ${VBFILESDIR}\Comcat.dll $SYSDIR\Comcat.dll $SYSDIR
with this:
Code: [Select]
!insertmacro UpgradeDLL "${VBFILESDIR}\Comcat.dll" $SYSDIR\Comcat.dll $SYSDIR

(And add quotes to the following lines too if that works)

BTW, it may interest you all to know, it looks like Notepad++ can understand the syntax of nsi files.  I was impressed!