ad16ecfb36
fix bug: was assigning char to pointer, instead of writing to *pointer
...
This was SVN commit r1768.
2005-01-23 17:36:57 +00:00
e8121ca394
Also allow access to the last player ;-)
...
This was SVN commit r1765.
2005-01-23 12:54:14 +00:00
6dcac374e7
Oops, forgot to add the PS_MAX_PLAYERS constant
...
This was SVN commit r1757.
2005-01-23 04:14:49 +00:00
bcf89936c1
Fixed a few memory leaks as well as the CPlayer/SColour crash-on-exit bug
...
This was SVN commit r1756.
2005-01-23 01:36:47 +00:00
e717aaf997
Fixed warnings
...
This was SVN commit r1751.
2005-01-22 18:38:58 +00:00
ae38aee3d2
Revamped CNetClient/CNetServer JS Interface and new CGameAttributes
...
implementation (moving towards a merger of CGameAttribs into CGame).
This was SVN commit r1746.
2005-01-19 22:32:25 +00:00
a410c2852c
Updated ScEd's handling of players (though in a rather nasty way, since it doesn't actually have a CGame, and so it has no CPlayers, and so there are loads of HACK comments everywhere)
...
This was SVN commit r1740.
2005-01-18 12:45:56 +00:00
MarkT
9a2979edec
This was SVN commit r1738.
2005-01-18 10:57:17 +00:00
MarkT
20ce33094f
This was SVN commit r1735.
2005-01-18 10:49:06 +00:00
MarkT
6b64327a19
This was SVN commit r1734.
2005-01-18 10:48:51 +00:00
MarkT
25fdbfd931
Fixes for two pathfinding bugs (neither of which were actually pathfinding bugs), added player objects (details in TM)
...
This was SVN commit r1733.
2005-01-18 00:46:18 +00:00
4b5aff926d
Fixed compilation errors
...
This was SVN commit r1731.
2005-01-17 10:20:47 +00:00
2077698156
New JavaScript interface for the network client, plus some linux/gcc/misc fixes
...
This was SVN commit r1730.
2005-01-17 04:52:02 +00:00
38b30e5eb4
Corrected ICC errors and some warnings. Removed some unnecessarily verbose logging. Did minor things.
...
This was SVN commit r1718.
2005-01-13 00:17:31 +00:00
4720a00f98
Made ScEd output entities into an XML file.
...
Added CStrW::utf8() (used by XMLWriter).
This was SVN commit r1716.
2005-01-12 14:31:47 +00:00
fc4a34d768
Nicer XML-writing system
...
This was SVN commit r1711.
2005-01-11 20:15:39 +00:00
15fcf8f054
Neatened some debug messages. Changed main.cpp so ScEd can use it. Fixed minor inconsistencies and warnings.
...
This was SVN commit r1708.
2005-01-11 16:58:16 +00:00
f7e82dbc16
add ps/Errors.h and/or lib/types.h headers (shouldn't rely on precompiled.h to pull those in).
...
also prepended ps/ to make location clear.
This was SVN commit r1652.
2005-01-07 00:47:44 +00:00
0a99e2a189
Another extremely important whitespace fix
...
This was SVN commit r1624.
2005-01-03 20:40:32 +00:00
43271f7618
Ctrl+home, ctrl+end go to top/bottom of console
...
This was SVN commit r1609.
2005-01-01 18:12:23 +00:00
15bb170328
SessionStart event sent to GUI objects upon starting a game
...
This was SVN commit r1608.
2005-01-01 17:30:55 +00:00
94f89e130b
Let ScEd open maps with non-VFS filenames. Probably stopped leaking memory.
...
This was SVN commit r1588.
2004-12-28 16:17:17 +00:00
9e2413acab
Allowed \\ in tooltip text. Fixed tooltips.
...
This was SVN commit r1587.
2004-12-28 13:13:27 +00:00
f4fe8c8543
Sky colour, plus skycolor config value
...
This was SVN commit r1583.
2004-12-28 11:16:05 +00:00
05c4ec0365
Alterations to ScEd, so that it almost works (except for saving/loading maps). Change the bottom of premake.lua if you want to build it.
...
This was SVN commit r1580.
2004-12-27 23:27:26 +00:00
d2855c4f9c
Fixed GC crash.
...
This was SVN commit r1565.
2004-12-23 22:24:09 +00:00
659a9ea57a
Initial (incomplete) tooltip code
...
This was SVN commit r1540.
2004-12-21 13:37:24 +00:00
46f5c61179
Linux/GCC/glibc Compat
...
This was SVN commit r1532.
2004-12-18 23:30:28 +00:00
ba0ebd6644
Renamed icon-size/icon-id to cell-size/cell-id, and allowed cell-id to be used in <icon>s.
...
Added <effect>s to sprites/images - currently multiply-color and
add-color, though they're far from perfect.
This was SVN commit r1525.
2004-12-18 13:32:00 +00:00
8a1c3c550e
Fixed bug which made XMBs' filenames contain 00000000 for the size, when built with VC2005. (Nasty confusing 64-bit variables...)
...
Also made it insensitive to rounded-down-to-nearest-2-seconds timestamps
in zip files.
This was SVN commit r1521.
2004-12-17 19:47:21 +00:00
6526301cfe
GUI icon-sheets
...
This was SVN commit r1519.
2004-12-17 16:20:08 +00:00
855c00f6b8
Slightly tidied some small things
...
This was SVN commit r1510.
2004-12-16 00:47:12 +00:00
11f3b3c575
CFilePacker now takes version+magic string in the ctor (allows writing data in one go, so vfs_store can be used).
...
This was SVN commit r1505.
2004-12-15 14:26:21 +00:00
b259381fbf
1) minor error handling improvements (was passing back invalid handle error, instead of the cause; also added a CHECK_ERR)
...
2) we attempt to load missing files (see bug #32 ). with the fix above,
CHECK_ERR would fire every run (which it should until the problem is
fixed :P), which is annoying.
Instead, FileUnpacker now checks if the file exists; if not, it throws
immediately and thereby bypasses the VFS error mechanism.
This was SVN commit r1503.
2004-12-15 14:24:12 +00:00
fa25746df7
CFilePacker now takes version+magic string in the ctor (allows writing data in one go, so vfs_store can be used).
...
This was SVN commit r1501.
2004-12-15 14:22:50 +00:00
6d7d049d89
Attempted to minimise dependencies between header files (to make compilation minorly faster)
...
This was SVN commit r1490.
2004-12-12 19:43:55 +00:00
0598081a57
Changed Xeromyces to care about the .xml's size/mtime rather than its contents (to avoid needing to load the .xml), and also to store that information in the .xmb's filename rather than inside the file (to avoid getting confused when rewriting files that are inside archives)
...
This was SVN commit r1480.
2004-12-09 16:57:21 +00:00
c3fafdca99
Added CStr::FindInsensitive
...
This was SVN commit r1479.
2004-12-09 16:54:02 +00:00
e2062ccee1
Faster parsing
...
This was SVN commit r1477.
2004-12-08 18:15:39 +00:00
2248b615ea
NOP
...
This was SVN commit r1473.
2004-12-07 22:14:23 +00:00
77196dbe06
less dependencies on res/res.h in headers (a bad thing) => less recompiles when I change vfs.h :)
...
This was SVN commit r1467.
2004-12-07 02:04:38 +00:00
a2a6f29ab3
s/Prometheus/Pyrogenesis/
...
This was SVN commit r1459.
2004-12-05 21:56:09 +00:00
ffb5f87857
Corrected mesh manager's use of hashmap. Added CStrW support to JS/GUI interface. Added error checking to CStr::Left/Right to make bugs more obvious.
...
This was SVN commit r1456.
2004-12-05 18:26:43 +00:00
f1dac9c626
better error handling: lots of little changes.
...
added some error codes, tried to eliminate unspecific return -1 where
it made sense.
This was SVN commit r1436.
2004-12-01 21:37:01 +00:00
fe54b3deeb
Fixed minor warnings
...
This was SVN commit r1406.
2004-11-27 03:22:04 +00:00
Gee
caff02e8da
I had to ask some things to make some word-processing easier/faster. Feel free to adjust anything that's crooked.
...
This was SVN commit r1395.
2004-11-24 23:47:48 +00:00
7bf6d11d8c
"*.<ext>" filter as per new vfs_next_dirent
...
This was SVN commit r1392.
2004-11-23 23:52:52 +00:00
86940ee0aa
Minor changes in MP player handling, slightly more correct
...
This was SVN commit r1388.
2004-11-23 23:46:15 +00:00
b3cba5f48c
Deadlock Fix in Linux code
...
This was SVN commit r1387.
2004-11-23 23:37:10 +00:00
5c923bbe70
update filter dox to bring in line with new vfs_next_dirent
...
also accounts for new ERR_VFS_DIR_END code when checking errors
This was SVN commit r1385.
2004-11-23 21:11:00 +00:00
2fadd87e4f
remove zlib.h from header to xeromyces.cpp
...
it's only used to forward-declare a function used in the impl =>
shouldn't be in header
also added ZLIB_DLL before zlib.h
This was SVN commit r1375.
2004-11-22 00:19:08 +00:00
e04df2616b
remove redundant size_t >= 0 check to satisfy ICC
...
This was SVN commit r1351.
2004-11-18 20:52:27 +00:00
b4fef6c1f2
fix incorrect 64-bit serialization
...
(was shifting u32 32 bits left, which is 0)
This was SVN commit r1350.
2004-11-18 20:51:49 +00:00
16287e8195
commented out EntityResolver LOG statement (less spew)
...
This was SVN commit r1339.
2004-11-16 18:22:54 +00:00
MarkT
d30e10042f
Minor changes to sound-script interface.
...
This was SVN commit r1332.
2004-11-15 22:30:01 +00:00
fb09faf5be
Parser bug-fix
...
This was SVN commit r1313.
2004-11-14 18:56:13 +00:00
64646cfbbf
Some more verbose error reporting
...
This was SVN commit r1307.
2004-11-12 22:11:04 +00:00
MarkT
793794649f
Combat code, some scripting, broken network, and fixed some bugs.
...
This was SVN commit r1301.
2004-11-11 07:09:32 +00:00
f76d099956
Proper Player Handling
...
This was SVN commit r1286.
2004-11-07 21:59:52 +00:00
c32e6d5215
String conversion fix/extension
...
This was SVN commit r1285.
2004-11-07 21:57:46 +00:00
3136791492
Linux/GCC Compat(tm)
...
This was SVN commit r1284.
2004-11-07 21:30:47 +00:00
5e42dad394
CStr alterations
...
This was SVN commit r1282.
2004-10-31 20:29:09 +00:00
MarkT
d33d2e4450
Added some support for user profiles
...
This was SVN commit r1270.
2004-10-23 14:39:28 +00:00
Gee
cdf7334d34
Added GetHeight()
...
This was SVN commit r1236.
2004-10-14 10:10:43 +00:00
442c6f315f
Added 'const' to appropriate bits of Xeromyces
...
This was SVN commit r1226.
2004-10-07 20:49:35 +00:00
MarkT
6f10c954de
Missing JSCollection*. Oops.
...
This was SVN commit r1224.
2004-10-07 20:09:11 +00:00
MarkT
2ab625720b
Fairly major XML/entprop changes; some more minor stuff that fell out as a consequence.
...
This was SVN commit r1220.
2004-10-07 19:23:35 +00:00
975344b515
less dependencies: handle.h forward-defines Handle, so that not everything that uses res headers is dependent on h_mgr
...
This was SVN commit r1215.
2004-10-06 14:12:10 +00:00
7c157c5f90
Avoided minor for-scoping complaints
...
This was SVN commit r1187.
2004-09-22 11:51:43 +00:00
777f06143d
- A lot of small network fixes
...
- Connecting client(s) to a server and giving orders to a shared set of
entities now works - Yeah!
- Removed thread sync from CNetServer
This was SVN commit r1180.
2004-09-21 14:40:43 +00:00
6787a32b3c
potential vsnprintf buffer overflow
...
This was SVN commit r1179.
2004-09-21 14:35:30 +00:00
92ade065c3
vector<char> magic changed into a nicer std::string constructor (heap corruption induced paranoia =] )
...
This was SVN commit r1178.
2004-09-21 14:33:13 +00:00
a9075a887f
- Chat fix (server user didn't see his own text)
...
- Removed filter for Ctrl-Alt combinations (some pretty useful chars
like {[]} are on AltGr/CtrlAlt combinations here in Sweden)
This was SVN commit r1177.
2004-09-21 14:31:02 +00:00
ea9bd61195
now correctly set m_UnpackPos
...
This was SVN commit r1169.
2004-09-19 19:22:18 +00:00
69e9f3ef79
now stores its data in buffer, rather than copying to std::vector
...
This was SVN commit r1168.
2004-09-19 18:51:19 +00:00
dbee9e74fd
Fixed lack of termination when log messages exceed 512 chars
...
This was SVN commit r1148.
2004-09-17 23:13:38 +00:00
5df205084f
Made JSString->wstring conversion slightly easier
...
This was SVN commit r1134.
2004-09-06 11:28:04 +00:00
13974087c3
Fixed memory leak
...
This was SVN commit r1133.
2004-09-06 11:18:47 +00:00
0dc2f34676
GCC whine avoidance: newlines at ends of files
...
This was SVN commit r1132.
2004-09-06 11:18:22 +00:00
f791e5f665
Altered the automatic CStr8/CStrW conversion -- it seems to work now
...
This was SVN commit r1131.
2004-09-06 11:15:43 +00:00
Gee
6e07632775
Changed a function that the GUI uses to Unicode.
...
This was SVN commit r1127.
2004-09-06 02:24:34 +00:00
3a3a5b6c34
Added getFPS(), so the GUI can draw the FPS counter. Also added getLanguageID(), so it knows what language it's using
...
This was SVN commit r1122.
2004-09-05 11:28:59 +00:00
4da6db92d2
Fixed typo in complex mathematical equation (center = "top+bottom/2.f")
...
This was SVN commit r1117.
2004-09-04 18:30:12 +00:00
3ef7b1b67b
Corrected JS_AddRoot usage (it wants a JSObject**/JSString**/jsval*/etc)
...
This was SVN commit r1116.
2004-09-04 14:43:23 +00:00
03ae01c44a
Replaced all CStr16 with CStrW, because its name was too confusing
...
This was SVN commit r1109.
2004-09-03 14:08:12 +00:00
Gee
d42de50280
Updated everything that's related to screen position to use floats
...
This was SVN commit r1107.
2004-09-03 05:48:47 +00:00
Gee
6b384432e0
no message
...
This was SVN commit r1101.
2004-09-02 03:05:16 +00:00
29e0bfea5b
Added CStr constructor for non-NULL-terminated char*s
...
This was SVN commit r1095.
2004-09-01 19:48:51 +00:00
18fea5478f
Updated i18n code
...
This was SVN commit r1094.
2004-09-01 19:48:03 +00:00
70d84beab2
Altered font handling -- now uses CFont in preference to unifont_* (yay, pointless OO) and allows font mapping ("default"=>"palatino12", etc) using .cfg files
...
This was SVN commit r1074.
2004-08-27 22:08:30 +00:00
9280aa15a7
Adjusted error handling minorly
...
This was SVN commit r1073.
2004-08-27 21:14:23 +00:00
880b768abd
Noticed "Engine exited successfully on " << __DATE__
...
This was SVN commit r1069.
2004-08-27 18:47:14 +00:00
405d5c476f
Made ThrowError(code) visible
...
This was SVN commit r1068.
2004-08-27 17:43:04 +00:00
97777fe688
LOG_ONCE, to avoid flooding the log with the same message every frame
...
This was SVN commit r1067.
2004-08-27 17:41:02 +00:00
4041b7880e
Made missing textures non-fatal
...
This was SVN commit r1059.
2004-08-26 10:31:34 +00:00
49e284ae5e
now uses vfs_load instead of vfs_map (faster, doesn't break if the files are in an archive and compressed)
...
This was SVN commit r1048.
2004-08-24 17:26:35 +00:00
f0e6936b94
Updated
...
This was SVN commit r1044.
2004-08-24 11:42:44 +00:00
83fb95dbde
Removed hard-coded filenames
...
This was SVN commit r1042.
2004-08-24 11:29:40 +00:00
49b5c5c2b8
Trivial wrapper around vfs_next_dirent, to make some other code a little tidier
...
This was SVN commit r1040.
2004-08-24 11:26:32 +00:00
9fa5e3b57a
Better Unicode support in the console
...
This was SVN commit r1038.
2004-08-24 11:07:50 +00:00
506b283844
Now actually uses IsInitialised() correctly, to avoid crashing when logging messages before the config DB is loaded
...
This was SVN commit r1037.
2004-08-24 11:05:41 +00:00
6873de4ed0
GCC fixes: string.c_str() in LOG
...
This was SVN commit r1034.
2004-08-21 12:55:43 +00:00
0e55379b36
Initial i18n integration
...
This was SVN commit r1029.
2004-08-21 11:45:01 +00:00
6e9c7dd532
Fixed minor type-conversion warnings
...
This was SVN commit r1026.
2004-08-20 14:03:49 +00:00
ac8cfef8d0
bugfix: was memsetting the memory log /stream/, not buffer. while at it, we just alloc via calloc
...
This was SVN commit r1013.
2004-08-18 01:51:23 +00:00
589106ae1c
increase memory buffer size (due to boundschecker overrun warning)
...
This was SVN commit r1012.
2004-08-18 01:32:05 +00:00
fdaa535fc2
Removed memory leak
...
This was SVN commit r1008.
2004-08-17 12:34:07 +00:00
4d9c7684df
w00t! first batch of actual network support!
...
This was SVN commit r1006.
2004-08-16 15:19:17 +00:00
d41cdc4dff
Allow NULL categories, and make them very interesting
...
This was SVN commit r996.
2004-08-15 21:10:49 +00:00
9cd4cab693
A few log categories
...
This was SVN commit r994.
2004-08-15 20:57:31 +00:00
0037a0c6c0
Now allows categorised logging with user-configurable interest levels. By default, all errors and warnings are 'interesting' (reported in interestinglog.html and the console), and system.cfg lets you alter your interest in particular categories.
...
This was SVN commit r993.
2004-08-15 20:57:04 +00:00
98a4cea133
IsInitialised() on singletons, for when you need to know whether certain things (e.g. the config database) exist yet
...
This was SVN commit r992.
2004-08-15 20:47:25 +00:00
00a70deafd
Fixed the console's border
...
This was SVN commit r989.
2004-08-14 11:40:40 +00:00
436e45daee
now uses vfs_load.
...
This was SVN commit r970.
2004-08-11 20:18:49 +00:00
6fa44006e8
remove mods/official from pathname (since Unpacker now uses the VFS)
...
This was SVN commit r969.
2004-08-11 20:18:30 +00:00
b09896a62b
Documented the console cursor character's magic number (U+FE33)
...
This was SVN commit r966.
2004-08-11 14:48:36 +00:00
4d202beb5b
Less ambiguous cursor in console
...
This was SVN commit r965.
2004-08-10 17:16:46 +00:00
230731c69d
Allow the standard Windows PrtSc action (i.e. copy to clipboard) if HOTKEY_SCREENSHOT has been redefined
...
This was SVN commit r951.
2004-08-09 20:58:32 +00:00
1768ccded3
Miscellaneous GCC fixes
...
This was SVN commit r948.
2004-08-09 16:44:08 +00:00
1e6bd8025e
Miscellaneous GCC fixes
...
This was SVN commit r947.
2004-08-09 16:32:01 +00:00
65ec0b468d
Added vsnprintf2, a wrapper around vsnprintf to make it more gcc-like (allowing %lld, %1$d, etc)
...
This was SVN commit r944.
2004-08-09 15:44:35 +00:00
abfe9faadc
New zlib/libpng libraries
...
This was SVN commit r942.
2004-08-08 18:50:44 +00:00
c248ae93eb
Vital whitespace alterations
...
This was SVN commit r927.
2004-08-06 15:07:01 +00:00
cd8a6aaea8
Added \n to debug_out messages
...
This was SVN commit r926.
2004-08-06 15:04:47 +00:00
b2afef529c
Introducing: The Pre-Game State. The game instance is not created on program load as before, but can be started by JS functions.
...
This was SVN commit r912.
2004-08-05 13:07:51 +00:00
b51314d34a
added flag parameter (default 0). wasn't necessary here, but will allow influencing caching strategy
...
This was SVN commit r906.
2004-08-05 12:44:29 +00:00
a823a00570
utf16() method for CStr8/W => utf16string conversion
...
This was SVN commit r904.
2004-08-05 12:15:53 +00:00
notpete
8a77473ef0
Fix for lighting settings not loading from map files.
...
This was SVN commit r898.
2004-08-04 21:03:53 +00:00
db702310d7
Fixed crash when reading invalid XML files
...
This was SVN commit r889.
2004-08-03 10:17:08 +00:00
MarkT
2b396ccb57
Minor improvements to some simulation code.
...
This was SVN commit r887.
2004-08-02 23:14:54 +00:00
4577ad00dc
fix include path
...
This was SVN commit r870.
2004-07-31 19:47:40 +00:00
09f47d6820
Core Classes Reorganization:
...
- g_Terrain and g_Camera totally eradicated as globals, is now m_Terrain
of CWorld and m_Camera of CGameView
- terrainMain.cpp is almost completely empty with functionality moved
into the relevant core classes
- Miscellaneous global functions moved into Core Classes (mostly
GameView)
This was SVN commit r865.
2004-07-31 15:57:18 +00:00
fa4fc7f4ee
change CVFSFile header path
...
This was SVN commit r855.
2004-07-31 11:38:13 +00:00
363fba9b94
moved from lib/res/ to ps/
...
This was SVN commit r854.
2004-07-31 11:36:44 +00:00
e71a29faf0
CStr::UpperCase now returns uppercase, not lowercase
...
This was SVN commit r849.
2004-07-31 10:59:27 +00:00
5f810002c7
Changed error handling in Xeromyces
...
This was SVN commit r845.
2004-07-29 16:17:21 +00:00
36c502713b
Used mem_free_h on the Handle returned by vfs_load
...
This was SVN commit r842.
2004-07-29 16:12:27 +00:00
d2070837d2
Global variables are nasty. Hacked g_Terrain into a pointer so that it doesn't crash when automatically destructing, although it ought to be handled in a nicer way.
...
This was SVN commit r839.
2004-07-28 19:27:35 +00:00
00420a8815
fix some minor warnings
...
This was SVN commit r834.
2004-07-28 15:07:54 +00:00
7cd447826c
add PLAYMUSIC hotkey
...
This was SVN commit r832.
2004-07-28 12:07:48 +00:00
415662c4cd
First set of Core Classes changes! w00t :P
...
This was SVN commit r823.
2004-07-27 21:00:53 +00:00
8ae3658f84
Fixed endless loop after closed socket connection
...
This was SVN commit r822.
2004-07-27 20:59:46 +00:00
386900c0fc
Linux/GCC Compat
...
This was SVN commit r819.
2004-07-27 00:26:51 +00:00
fe1bee706b
Fixed loads of /W4 warnings, because it's easier than doing anything useful. Added some asserts to check potentially dangerous assumptions, implemented a few missing bits of code, adjusted some comments, etc.
...
This was SVN commit r814.
2004-07-24 14:04:40 +00:00
046aee9750
Avoid potential endianness conflicts in XMB files
...
This was SVN commit r812.
2004-07-23 19:03:40 +00:00
MarkT
befae8627d
Changed hotkey handling for groups and bookmarks; small pathfinding fixes.
...
This was SVN commit r809.
2004-07-23 10:56:52 +00:00
MarkT
5470eff53c
Fixed (probably) degenerate case stalling the heightfield tracer.
...
This was SVN commit r807.
2004-07-22 17:00:43 +00:00
MarkT
1e719e9262
Scripting interface to currently selected entities; plus initial code to support GUI patrol button
...
This was SVN commit r805.
2004-07-22 16:19:37 +00:00
MarkT
6d8b9e33ef
Minor additions: Added hotkeys to GUI buttons, camera bookmarking (not sure if this system will stay), shoring up some JS error checking, moved a bunch of constants into the config file and added a new rotation mode.
...
This was SVN commit r804.
2004-07-22 16:18:12 +00:00
MarkT
c3cc7d1c13
no message
...
This was SVN commit r799.
2004-07-21 17:04:10 +00:00