Browse files

Fixes log folder script on WinXP/2000. Moves script inside source/too…

…ls. Adds start menu shortcut to the installer. Updates README. Fixes #1438

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@12068 3db68df2-c116-0410-a063-a993310a9797
  • Loading branch information...
1 parent 5338e0f commit 69672e2d07f2ae90bd20b74a50ab44137388562a ben committed Jul 4, 2012
View
2 OpenLogsFolder.bat
@@ -1,2 +0,0 @@
-cd /D "%appdata%\0ad\logs\"
-start .
View
16 README.txt
@@ -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
4 source/tools/dist/0ad.nsi
@@ -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
3 source/tools/openlogsfolder/OpenLogsFolder.bat
@@ -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
5 source/tools/openlogsfolder/OpenLogsFolder.vbs
@@ -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"

0 comments on commit 69672e2

Please sign in to comment.