Commit graph

7849 commits

Author SHA1 Message Date
Pali Rohár
153aaffb9a Fixed make strip in Makefile
In build-win32-cross.sh strip stratagus.exe and compress with upx
2010-08-10 11:35:43 +02:00
Pali Rohár
a0ec4a5375 Windows NSIS Installer
- use LZMA compression
 - pack Installer EXE header with upx
2010-08-10 11:33:12 +02:00
Pali Rohár
0abad20221 Fixed Windows NSIS Installer
- Use MUI2 instead MUI 
 - Use only register 0 instead R0
 - Use relative instruction jumps instead label jumps
 - Do not allow start installer twice
 - Do not allow uninstall Stratagus if some Stratagus games are installed (e.g. Wargus) (force with param /P in UninstallPrevious section)
 - Check for installed games in HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall\Stratagus\Games
2010-08-09 13:58:09 +02:00
Pali Rohár
07b1557cd3 Updating doc/ChangeLog.html 2010-08-08 08:48:00 +02:00
Pali Rohár
499d5ffc13 Added CPPFLAGS to windres
Moved version information from src/include/stratagus.h to src/include/version.h
Added Lua function GetStratagusVersion() which return Stratagus Version (C Macro VERSION)
Added Lua function GetStratagusHomepage() which return Stratagus Homepage (C Macro HOMEPAGE)
Added VersionInfo to Windows Resource file for stratagus.exe
Fixed VersionInfo in Windows NSIS Installer
Added support for playlist music in menu too (before only supported in running game)
2010-08-07 15:43:34 +02:00
Pali Rohár
e3fd2f70c8 Fixed correct URLs in Windows NSIS installer and others 2010-08-06 14:12:09 +02:00
Pali Rohár
7b945d6c66 Patch stratagus-r8003-vc90.patch from http://sourceforge.net/tracker/?func=detail&aid=2895148&group_id=84903&atid=574267
patch to compile and run stratagus using VC2008 - ID: 2895148

Issue 2. unit.h: undefine NOUSER for VC2008
Fixes compiler error under VC2008.
Changes the code to undefine macro NOUSER in unit.h before including windows.h, otherwise clipboard related functions and structures will be undefined. Also removes duplicated and confusing windows.h includes in util.cpp.

Issue 4. unit_draw.cpp: memset caused access violation
Fixes acess violation when loading Wargus scripts at startup with stratagus RELEASE build.
Function DecorationCclRegister() in unit_draw.cpp use memset to re-initialize C++ object, which breaks internal data structures of STL vector. However, this access violation will only occur when compiled with VC2008 RELEASE profile.
Using vector's clear() method to re-initialize DecoSprite, replacing memset,

Issue 5. minimap.cpp: fix minimap
Fixes minimap showing wrong terrain when playing a game in Wargus.
Two different semantic are used inconsistently to calculate minimap index in minimap.cpp, One is mx + my, the onther is mx + my * Map.Info.MapWidth. This inconsistency causes cause minimap to show wrong terrain.
Changes the code in minimap.cpp to use the first semantic consistently.

Issue 7. loadcamp.cpp: Cleaning Order
Fixes access violation on exiting the game or close the game window directly in DEBUG build.  
Because stratagus.exe try to do a clean exit when compiled with DEBUG profile, which frees a bunch of allocated resources in loadcamp.cpp CleanModules(). But the order seems problematic, causing memory access violation when exits.
It seems that CleanUnitTypes() and CleanPlayers() must be called after CleanUnits(), since UnitType and Players structures are used when cleaning units.
    
Issue 8. mainloop.cpp: Parallel drawing     
Fixes keyboard and mouse issue in a Wargus game: user can't issue any command with keyboard or mouse after the game is started.      
Parallel drawing seems not working under Windows. When run stratagus under a dual-core processor, keyboard and mouse click event cannot be received by GameLogicLoop.       
Changes the code in mainloop.cpp to use only 1 cpu under WIN32.
2010-08-03 16:51:57 +02:00
Pali Rohár
6c82dc4874 Patch net-bind.diff from http://sourceforge.net/tracker/?func=detail&aid=1682872&group_id=84903&atid=574267
Allow setting the address when binding the sockets - ID: 1682872

On a box with several network interface it might be desirable to bind only on a specific address.
This patch add a new command line option (-I) to do that.
2010-08-03 15:49:33 +02:00
Pali Rohár
61cea7db75 Patch stratagus-fog-of-war-color.patch from http://sourceforge.net/tracker/?func=detail&aid=1580841&group_id=84903&atid=574267
Configurable Fog of War color - ID: 1580841

Adds a configuration option,
SetFogOfWarColor(red,green,blue) and document it in
doc/scripts.
        
Applies to SVN code as of 2006-10-19.
2010-08-03 15:13:49 +02:00
Pali Rohár
8d735a7def Add function IsMusicPlaying() to Lua 2010-08-03 14:53:12 +02:00
Pali Rohár
f59783afdf Text fixes
Fixed launchpad URLs in doc/*
2010-08-02 17:52:16 +02:00
Pali Rohár
9a4d6dd83b Fix info in debian/control 2010-08-02 17:51:21 +02:00
Pali Rohár
76bf2d5236 Fix creating debian/control file on Maemo 2010-08-02 17:50:23 +02:00
Pali Rohár
12bb89b488 Added Bugtracker line in debian/control for Maemo 2010-07-27 11:26:01 +02:00
Pali Rohár
52fa7dad5d Added libosso-dev dependences to debian/control 2010-07-27 11:05:23 +02:00
Pali Rohár
910af57d80 Release version 2.2.5.2 2010-07-27 10:52:00 +02:00
Pali Rohár
000e9a7a09 Do not call WINAPI_AttachConsole() twice (in src/video/sdl.cpp too) 2010-07-27 09:53:01 +02:00
Pali Rohár
f7fca8b2a4 Fix URLs in debian/control
Clean debian/changelog
2010-07-27 09:52:33 +02:00
Pali Rohár
a0f6d5ed21 When SDL_OPENGL is used, it is not possible to call SDL_CreateYUVOverlay
Turn temporary OpenGL off when playing movie, which use SDL_CreateYUVOverlay

This patch add support for playing movies in OpenGL mode
2010-07-15 13:08:36 +02:00
Pali Rohár
d577514c22 GLES Compile fix 2010-07-14 13:45:08 +02:00
Pali Rohár
8c7b097550 Compile warning 2010-07-14 13:30:28 +02:00
Pali Rohár
754062d5ed configure.in
- Revert back CPPFLAGS -Werror
 - Autodetect for theroa
 - Fix LUA includes
2010-07-14 11:51:13 +02:00
Pali Rohár
6faa23cba3 Clean GLES sections 2010-07-14 11:16:53 +02:00
Pali Rohár
6329e3bb13 On Maemo
- Link with library libosso, call osso_initialize
 - Call every 50s osso_display_blanking_pause for keeping backlight alive
 - Do not create WM icon, on Maemo is not supported
2010-07-14 10:33:28 +02:00
Pali Rohár
eb9822b382 Fix compile warnings in debug mode 2010-07-14 09:25:03 +02:00
Pali Rohár
a3b29846fe Fix searching for png game pixmap in Unix system - used for window icon 2010-07-13 13:34:38 +02:00
Pali Rohár
08a5941109 Make sure, that we not create OpenGL textures (and do not call OpenGL functions), when creating icon surface 2010-07-13 11:07:45 +02:00
Pali Rohár
0957cfaa19 Fixed setting WM caption
Fixed setting WM icon
On Windows use Unicode WINAPI functions for extract icon from EXE file
On Debian create png pixmap from ico file
2010-07-13 10:15:09 +02:00
Pali Rohár
9c083efc0c Compile fix on MinGW W64 2010-07-12 10:27:44 +02:00
Pali Rohár
545b0c4526 Added function SetFullGameName to LUA scripts - use name for WM icon and title
- On Unix load icon from /usr/share/pixmaps/
 - On Windows load icon from exe file from previous image argv[0]
2010-07-11 12:36:30 +02:00
Pali Rohár
0cb00b273b Remove executable flags on text files 2010-07-10 14:24:11 +02:00
Pali Rohár
65319597a4 Added Lua function SetUseOpenGL for setting OpenGL state from scripts at startup (insted changing variable UseOpenGL)
Added params -O and -o for stratagus setting OpenGL state from command line
2010-07-10 11:02:36 +02:00
Pali Rohár
1cf7eddf49 Removed creating dummy stratagus-gl deb package
Added infos to changelog
2010-07-09 16:24:15 +02:00
Pali Rohár
e55a9ad470 Compile fix in debug mode 2010-07-08 14:53:55 +02:00
Pali Rohár
c9d302cafb Fixed saving multiline strings in lua
Fixed saving triggers in lua
2010-07-08 14:53:14 +02:00
Pali Rohár
3ae93a2785 OpenGL ES 1.1
- fix rendering
 - fix SwapBuffers();

Now stratagus with OpenGL ES 1.1 works correct
2010-07-06 20:56:01 +02:00
Pali Rohár
e106b20e9b stratagus.nsi - fix checking for 64 bit version 2010-07-06 10:35:58 +02:00
Pali Rohár
b872c0b665 Rewrited Windows NSIS Installer
Changed version of Stratagus to 2.2.5.1
2010-06-25 11:56:11 +02:00
Pali Rohár
1e90bee11b build-win32-cross.sh
- build 64 bit Windows version beforre 32 bit
2010-06-24 18:19:13 +02:00
Pali Rohár
f343acd037 Port new version of file src/video/sprite.cpp to OpenGL ES 1.1 2010-06-24 18:14:25 +02:00
Pali Rohár
514411b18d Backport src/video/sprite.cpp from BosWars svn upstream (engine/video/glgraphicdraw.cpp) 2010-06-24 18:13:10 +02:00
Pali Rohár
d80ca98890 Backport patch from BosWars: http://svn.seul.org/viewcvs/viewvc.cgi?view=rev&root=BosWars&revision=9662
Make GLMaxTextureSize configurable for systems where the value reported by OpenGL causes slow displays
2010-06-24 18:11:02 +02:00
Pali Rohár
d4e99a1653 Fix AttachConsole on Windows 2010-06-24 16:08:33 +02:00
Pali Rohár
2b2b7e06d0 Fixed video output on OpenGL ES 1.1
- call SDL_GLES_SwapBuffers() after glDrawArrays()
 - do not call glViewport() and glMatrixMode(GL_PROJECTION)
2010-06-24 13:08:04 +02:00
Pali Rohár
8192ffb6f6 Fix in debian/rules Maemo section
Fix handing mouse buttons on Maemo
 - double left click for building
 - ignore left button if is long cliked
2010-06-24 13:03:52 +02:00
Pali Rohár
1bcd7481f8 Fix headers 2010-06-24 13:02:47 +02:00
Pali Rohár
990866e5d6 * Build for fremantle rev. 55 2010-06-23 16:09:31 +02:00
Pali Rohár
203370091d * Build for lucid rev. 55 2010-06-23 16:01:44 +02:00
Pali Rohár
2f10df8595 * Build for karmic rev. 55 2010-06-23 15:59:11 +02:00
Pali Rohár
b467ecfd51 Added info to changelog 2010-06-23 15:24:54 +02:00