Commit Graph

135 Commits

Author SHA1 Message Date
Nathan Fulton
363c8f7f02 Update readme 2016-09-01 09:48:15 -04:00
Nathan Fulton
a8d606e957 Support maps that are smaller than the device screen 2016-08-31 23:55:30 -04:00
Scott Ludwig
dc42d310d6 Add bit about running with asan_symbolize 2016-08-31 23:55:30 -04:00
Scott Ludwig
7fe6d72942 Use gcc's address sanitizer feature on debug builds
Update to gcc-5 / g++-5 first. Instructions in the makefile.
2016-08-31 23:55:30 -04:00
Scott Ludwig
95046aaaee Use delete[] for arrays allocated with new[]. 2016-08-31 23:55:30 -04:00
Scott Ludwig
e2e2283583 Use free for malloc-ed objects 2016-08-31 23:55:30 -04:00
Scott Ludwig
b91e6e0b4b Fix crash caused by trying to stop a thread that hasn't started. 2016-08-31 23:55:30 -04:00
Scott Ludwig
6a0c49d05e Fix memory overwrite bug in memory manager
Surprising this has been in the code this long.
2016-08-31 23:55:30 -04:00
Scott Ludwig
4874844ec2 Include correctly cased include file filename 2016-08-31 23:55:30 -04:00
Scott Ludwig
6750cc3cad Silence directory creation 2016-08-31 23:55:30 -04:00
Scott Ludwig
a4896472b6 Install libcurl4-openssl-dev which provides libcurl3-dev 2016-08-31 23:55:30 -04:00
Scott Ludwig
d5b4006193 A few minor enhancements to install.sh 2016-08-31 23:55:30 -04:00
Nathan Fulton
c488c6222a Set pevt->ff when sdl host processes messages 2016-08-31 23:54:49 -04:00
Nathan Fulton
8c4da26891 Remove unit highlight during replication 2016-08-31 23:54:48 -04:00
Nathan Fulton
7974edd381 Fix processor bug 2016-08-31 23:54:48 -04:00
Nathan Fulton
bec7aea014 Initial SDL-Linux port 2016-08-31 23:54:48 -04:00
Nathan Fulton
5b5917fbab Implement SdlAnimSprite 2016-08-31 23:54:48 -04:00
Nathan Fulton
6e65f8273b Update gitignore 2016-08-31 23:54:48 -04:00
Nathan Fulton
f0b60db710 Fix builder bug that allowed ordering disabled units
If a unit was ordered while it was enabled, and then the order was
canceled after the unit was disabled, the order button would appear and
allow the disabled unit to be ordered more. This would continue to work
as long as there was at least one order of the disabled unit in the
queue to cancel.
2016-08-31 23:54:48 -04:00
Nathan Fulton
b57f5a3a62 Add null checks to fix server crashing 2016-08-31 23:54:48 -04:00
Nathan Fulton
fc00f91f25 Added processing for vchrBack
Android’s system back button will be processed as vchrBack which will
select kidcCancel on most forms. This causes the user to feel that the
game is more integrated with the OS.
2016-08-31 23:54:48 -04:00
Nathan Fulton
d6b301c3e7 Track client platform version
Client platform version can be retrieved live with /ids and is also
recorded in the playerdetail module.
2016-08-31 23:54:48 -04:00
Nathan Fulton
87e212c2c9 Fix playerdetail saving incorrect action times 2016-08-31 22:43:36 -04:00
Nathan Fulton
4f2a0de55c SDL display improvements 2016-08-31 22:43:36 -04:00
Nathan Fulton
3ae02f81eb Recompile assets with recent data changes
titlescreenbkgd was made larger and Nathan was added to credits.
2016-08-31 22:43:36 -04:00
Nathan Fulton
df2ef6560a Add Nathan to help credits
Add myself into help credits under additional coding :)
2016-08-31 22:43:35 -04:00
Nathan Fulton
00345c52cd Expand size of titlescreenbkgd to fill larger displays
Due to the repetition, this 1422x913 version of the title screen
background doesn’t look overly great. However, it’s better than using a
small image that can’t fill larger screens.
2016-08-31 22:43:35 -04:00
Nathan Fulton
bdbe1647dd Improvements for SdlHttpRequest
- When “Downloaded X of Y bytes…” Y is no longer -1.
- HTTP posting now works (e.g. uploading sync errors).
2016-08-31 22:43:35 -04:00
Nathan Fulton
31adbf1da0 Save reinitialize game on SDL-iOS when app is terminated 2016-08-31 22:43:35 -04:00
Nathan Fulton
93d484864e NSURLConnection -> NSURLSession for SDL-iOS
Code for this commit is based off of the network code in game/iphone
2016-08-31 22:43:35 -04:00
Nathan Fulton
8ba3738d0f NSURLConnection -> NSURLSession for SDL-OSX
Code for this commit is based off of the network code in game/iphone
2016-08-31 22:43:35 -04:00
Nathan Fulton
72566c33bd Add server feature for clients to receive chats while in lobby
Clients can receive chats while in lobby state by having the shell form
present a HtMessageBox with the chat and the player is it from. This
feature was designed to be used with the moderator whisper command.
2016-08-31 22:43:35 -04:00
Nathan Fulton
abb1823956 Add /t server command for team chat
New command /t that can be used in game to send chats that only appear
to players on the same team. Observing players cannot use team chat.
2016-08-31 22:43:34 -04:00
Nathan Fulton
f6dd61415f /reg command can block anon logins server wide
Admins can issue "/reg server" to prevent anonymous logins on the game server.
2016-08-31 22:43:34 -04:00
Nathan Fulton
896e5a59a3 Add /ann command for server announcements
Server announcements will be displayed to every player who enters a
server created room. Admins can use the /ann command to set or clear
the server announcements.
2016-08-31 22:43:34 -04:00
Nathan Fulton
066e2a4839 Use a username with whispers and mod chats
“username to username:” or “username to mods:” was originally prefixed
to the chat and then the whole string was sent as a server message.
Now, “username to username:” is considered the user’s name for the
chat. This way, clients will process it as a user chat instead of a
server message (this results in the client coloring the chat
differently).
2016-08-31 22:43:34 -04:00
Nathan Fulton
40d0e9ff29 Improve server /ids command and add "all" argument
- Add support for an “all” argument that lists the id information for
every player on the server.
- /ids will now give a response when attempting to obtain the ids from
a location with no players (i.e. an empty room).
- Fixed unneeded newlines when /ids is issued for a game.
2016-08-31 22:43:34 -04:00
Nathan Fulton
27f07f70f9 Improve backgrounding on SDL-iOS and SDL-Android
If the client is connected to multiplayer when the app is backgrounded,
that connection will be closed. If the app is reopened, a message will
be presented with the user informing them of the disconnection. Single
player games will be paused when entering background and resumed when
entering foreground.
2016-08-31 22:43:34 -04:00
Nathan Fulton
eb1085142d Declare rect in RawBitmap outside of conditional scope 2016-08-31 22:43:34 -04:00
Nathan Fulton
c9372c661c mktemp() -> mkstemp() 2016-08-31 22:43:34 -04:00
Nathan Fulton
b1cf23f64d Implement SDLHttpRequest with curl
Credit goes to emileb for the curl implementation of sdlttprequest.
2016-08-31 22:43:34 -04:00
Nathan Fulton
4900cd1ae6 Add curl headers and static libraries for Android
Curl with OpenSSL static libraries obtained from
gcesarmza/curl-android-ios
2016-08-31 22:43:33 -04:00
Nathan Fulton
8b7657f643 Initial SDL-Android port 2016-08-31 22:43:27 -04:00
Nathan Fulton
4aadbf87cb strings.h -> wistrings.h
Change strings.h to wistrings.h to prevent SDL.h from including it
while trying to include the CRT strings.h
2016-08-24 21:40:38 -04:00
Nathan Fulton
aeb247e975 Set kszForumUrl in serviceurls.cpp 2016-08-24 21:38:20 -04:00
Nathan Fulton
573c8aafd3 Update preprocessor checks to support SDL 2016-08-24 21:34:48 -04:00
Nathan Fulton
19d74d3da6 SDL host timestamp events when processed if necessary 2016-08-24 21:34:45 -04:00
Nathan Fulton
94e319e1ee Implement multitouch for SDL 2016-08-24 21:34:34 -04:00
Nathan Fulton
2930ad1705 Initial SDL-iOS port 2016-08-24 16:42:47 -04:00
Nathan Fulton
d926ef0bbe Prevent SDL from rendering when app is backgrounded
On some platforms, the game will crash if SDL attempts to render to the
screen/window while the game is backgrounded. To prevent this, stop
rendering when the game enters a background state and resume rendering
when the game enters a foreground state.
2016-08-24 16:20:31 -04:00