Fixes log folder script on WinXP/2000. Moves script inside source/tools. Adds start menu shortcut to the installer. Updates README. Fixes #1438

This was SVN commit r12068.
This commit is contained in:
historic_bruno 2012-07-04 03:50:01 +00:00
parent f845878039
commit 512854e30c
5 changed files with 14 additions and 16 deletions

View File

@ -1,2 +0,0 @@
cd /D "%appdata%\0ad\logs\"
start .

View File

@ -28,7 +28,7 @@ Open the "binaries\system" folder.
To launch the game: Run pyrogenesis.exe
To launch the map editor: Run Atlas.bat
To launch the map editor: Run Atlas.bat or "pyrogenesis.exe -editor"
-----------------------------------
@ -43,15 +43,5 @@ http://trac.wildfiregames.com/wiki/BuildInstructions
Reporting problems
------------------
Bugs should be reported on Trac: http://trac.wildfiregames.com/
On Windows: If the game crashes, it should generate 'crashlog' files that will
help us debug the problem. Run OpenLogsFolder.bat to find the files
("%appdata%\0ad\logs\"), and attach crashlog.txt and crashlog.dmp to the bug
report.
On Linux / OS X: If the game detects an error, it should generate crashlog.txt
in ~/.config/0ad/logs/ . If it doesn't, it should at least print some
information on stdout. Attach crashlog.txt or the other information to the
bug report. It might also help to run the game in gdb and copy the output of
the "bt full" command, if possible.
Bugs should be reported on Trac. For information on reporting problems
and finding logs, see http://trac.wildfiregames.com/wiki/ReportingErrors

View File

@ -75,7 +75,7 @@ Section "!Game and data files" GameSection
SetOutPath "$INSTDIR"
File "${CHECKOUTPATH}\*.txt"
File "${CHECKOUTPATH}\*.bat"
File "${CHECKOUTPATH}\source\tools\openlogsfolder\*.*"
File /r /x "public" "${CHECKOUTPATH}\binaries"
SetOutPath "$INSTDIR\binaries\data\mods\public"
@ -107,6 +107,7 @@ Section "!Game and data files" GameSection
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\0 A.D..lnk" "$INSTDIR\binaries\system\pyrogenesis.exe" ""
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Map editor.lnk" "$INSTDIR\binaries\system\pyrogenesis.exe" "-editor" "$INSTDIR\binaries\data\tools\atlas\icons\ScenarioEditor.ico"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Open logs folder.lnk" "$INSTDIR\OpenLogsFolder.bat"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
WriteINIStr "$SMPROGRAMS\$StartMenuFolder\Web site.url" "InternetShortcut" "URL" "http://wildfiregames.com/0ad/"
@ -185,6 +186,7 @@ Section "Uninstall"
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
Delete "$SMPROGRAMS\$StartMenuFolder\Open logs folder.lnk"
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall.lnk"
Delete "$SMPROGRAMS\$StartMenuFolder\Map editor.lnk"
Delete "$SMPROGRAMS\$StartMenuFolder\0 A.D..lnk"

View File

@ -0,0 +1,3 @@
@REM We prefer to use the %localappdata% variable when available
@REM but it's not on XP/2000, so we use a VBScript as an alternative
(cd /D "%localappdata%\0ad\logs\" && start .) || cscript //Nologo OpenLogsFolder.vbs

View File

@ -0,0 +1,5 @@
' Simple VBScript to open the 0 A.D. logs folder
' the path varies on different versions of Windows
Set objShell = CreateObject("Shell.Application")
' 0x1C is equivalent to the ssfLOCALAPPDATA constant in VB
objShell.Explore objShell.Namespace(&H1C&).Self.Path & "\0ad\logs"