Commit Graph

2387 Commits

Author SHA1 Message Date
janwas 1f237be66b add rand_up_to
This was SVN commit r2170.
2005-04-26 16:47:48 +00:00
Gee 4d367109c3 Added GUIList
This was SVN commit r2165.
2005-04-23 23:23:06 +00:00
Gee 15f951bfbc CDropDown and the CGUIList type. This code is kind of rough around the edges as of yet. I'll work on it more.
This was SVN commit r2164.
2005-04-23 23:21:54 +00:00
Gee 15759ff4d7 Updated CList to fit JS interface, also added CDropDown in GUI.h
This was SVN commit r2163.
2005-04-23 23:20:50 +00:00
MarkT 899cf87b41 This was SVN commit r2159. 2005-04-22 19:14:50 +00:00
MarkT bcabe3aa53 Script integration work - valueOf() is no longer required most of the time; also property-change watches and enumeration over entities (but not yet other native objects), rudimentary beginnings of a global events system, and adjusted the status orb to update only on changes.
This was SVN commit r2157.
2005-04-22 07:12:55 +00:00
Ykkrosh 08921f56b4 Moved icon, so that compilation doesn't depend on anything in 'binaries'
This was SVN commit r2155.
2005-04-20 20:18:20 +00:00
Ykkrosh 58f0ce296e Wondering whether automated builds work again...
This was SVN commit r2154.
2005-04-20 19:54:29 +00:00
janwas 550bbec3d0 hopefully fixed bug #57 (limit on version info length was too low). while at it, made cpu_type's length externally visible; split sound stuff into sysdep/snd.h (as with gfx, cpu, mem) and in general cleaned up a bit.
This was SVN commit r2151.
2005-04-19 17:07:05 +00:00
janwas 771a9ba0dd label each system_info field (because even I was getting confused :P). nicer network host/IP detect code
This was SVN commit r2150.
2005-04-19 17:04:12 +00:00
janwas 04e7b1b16a fix warning (cast size() to int)
This was SVN commit r2149.
2005-04-19 17:02:57 +00:00
Ykkrosh 4c08a07052 Fixed warnings and bug. Updated binaries.
This was SVN commit r2136.
2005-04-15 22:40:15 +00:00
MarkT 2120576bc7 Gathering and unit training (engine-side); also other minor improvements
This was SVN commit r2132.
2005-04-15 04:23:33 +00:00
Ykkrosh b3cd340eec Updated binaries, and ScEd.
This was SVN commit r2129.
2005-04-13 05:08:45 +00:00
janwas c5bb56507e disable (failing) test
This was SVN commit r2128.
2005-04-13 04:55:42 +00:00
janwas 5d541e664a WIP; fixed compile error; armor-plated and started documenting list functions
This was SVN commit r2127.
2005-04-13 04:41:33 +00:00
janwas 82d2b7e49f initial lockless data structures - incomplete and not fully tested
This was SVN commit r2126.
2005-04-12 01:08:39 +00:00
janwas c179210519 pthread: add pthread_once and thread-local storage
This was SVN commit r2123.
2005-04-09 22:26:48 +00:00
janwas 9fd08fb044 vfs_tree: revise hash table implementation to make it reusable (not yet finished)
This was SVN commit r2122.
2005-04-09 22:25:23 +00:00
janwas 479f59e386 adts, lib: add some minor comments
This was SVN commit r2121.
2005-04-09 22:24:08 +00:00
Gee 1302be8009 This was SVN commit r2116. 2005-04-07 09:14:09 +00:00
Gee 1e8d354404 This was SVN commit r2115. 2005-04-07 09:13:10 +00:00
Ykkrosh d2948937a0 Fixed prop player-colouring. Allowed per-object colours. (Coming soon: data to demonstrate it.)
This was SVN commit r2113.
2005-04-07 04:29:07 +00:00
Ykkrosh 6a0b5fa0ab ScEd: Added unit deletion. Made zoom less frustrating. Let >2 players work.
Fixed random actor props.

This was SVN commit r2109.
2005-04-03 05:02:00 +00:00
olsner 5e742f5615 Setup all the sample players in SP games [bug #52]
This was SVN commit r2099.
2005-03-31 05:14:17 +00:00
janwas 9d139926c9 file: provide FILE_TEXT flag that enables newline translation - useful when outputting XML files, so notepad doesn't see "\n" (which it can't handle)
vfs: no longer watch dirs when mounting - need to pass flag. allows
turning this off for screenshots dir (where hotloading doesn't make
sense)

vfs_tree: expand hash table when 3/4 full; 1/2 was quite wasteful.

main: do CPU init early, so timing during init can use TSCmain: do CPU
init early, so timing during init can use TSC

This was SVN commit r2098.
2005-04-29 13:17:17 +00:00
janwas dfb576c563 wposix: seriously speed up mounting by removing hand-brake (i.e. checking file system name in every stat() ) call. thanks to philip for reporting the problem!
This was SVN commit r2097.
2005-03-30 23:49:50 +00:00
Ykkrosh 0eb78450c0 Maybe fixed GUI event-handler function things. Other minor changes and fixes.
This was SVN commit r2096.
2005-03-30 22:33:10 +00:00
MarkT 701fd17595 Sorry, SVN doesn't seem to be picking up modifications today.
This was SVN commit r2093.
2005-03-30 18:32:16 +00:00
MarkT 414960a654 Forcing update of EntityPredicate.h
This was SVN commit r2092.
2005-03-30 18:25:07 +00:00
Ykkrosh 31fb8c37c4 Entity XML inheritance graph generator. (Basically just Graphviz.)
This was SVN commit r2091.
2005-03-30 18:03:47 +00:00
MarkT bb7a22f32a First draft of a GPG3-style profiler (including tracing into scripts, after a fashion)
This was SVN commit r2090.
2005-03-30 16:14:19 +00:00
Ykkrosh 8b12c84df7 ScEd: allowed creation of non-entity objects, pending total entitisation
This was SVN commit r2085.
2005-03-30 05:43:22 +00:00
Ykkrosh b07d9954e0 Actor Editor: Copy-and-paste. Folder memory. Entity creation. Fixed importing.
This was SVN commit r2084.
2005-03-30 10:37:44 +00:00
Ykkrosh 827e06b8e4 Updated ScEd.
This was SVN commit r2083.
2005-03-30 02:06:00 +00:00
Ykkrosh 9cc11918d3 Fixed small bug in GUI event-handler setting
This was SVN commit r2081.
2005-03-29 23:34:58 +00:00
Ykkrosh a1fe270ff4 Fixed bug that caused entities to have no bounding boxes. (Oops.)
This was SVN commit r2080.
2005-03-29 22:26:48 +00:00
Ykkrosh 249aaf436f Allowed JS access to GUI object event handlers, via object.onPress etc.
Stopped crashes when ordering entities without bounding boxes.

This was SVN commit r2079.
2005-03-29 22:04:38 +00:00
Ykkrosh 22dd4dd67b Entities: Removed Tag attribute; it is taken from the filename instead. Made entity XML files be loaded on demand. Probably stopped crash when maps contain non-existent entities. Fixed a few bugs in entity definitions.
Maps: Stored non-entity objects in XML instead of PMP, for easier manual
editing. Updated existing maps to newest format, so that they can still
work. Added undocumented _rewriteMaps() JS function. Also renamed _mem
to vmem, and reclassified its undocumentedness as unintentional, since
it's reasonably useful.
Loader: added NonprogressiveLoad function, for ScEd/_rewriteMaps/etc
which don't care about progressiveness.
main.cpp: re-enabled vfs_display, since it doesn't crash now
Vector3D: stopped warning

This was SVN commit r2078.
2005-03-29 20:50:04 +00:00
janwas e86001f45e - file bugfix: truncate when opening for writing (problem reported by philip)
- file: now return size at close() time for use with VFS
- zip: tested open speed, added [exec time]  notes

This was SVN commit r2075.
2005-03-29 06:27:35 +00:00
MarkT 3c99f0f2eb Minor JavaScript updates
This was SVN commit r2073.
2005-03-28 22:13:47 +00:00
Ykkrosh e2c61d1519 Actor Editor: Changed serialisation system for import/export/undo/redo, so that file-opening can be undone/redone correctly.
This was SVN commit r2071.
2005-03-27 23:53:41 +00:00
janwas fd14510005 minor improvements: squelch warnings when dumping; debug_out an indication that is_string_ptr raised an exception
This was SVN commit r2070.
2005-03-27 18:17:03 +00:00
Ykkrosh 71705b5aa4 Actor Editor: Most-recently-used files list. 'New' menu item. Shuffled some header inclusions around.
This was SVN commit r2069.
2005-03-27 18:07:01 +00:00
janwas 36cd555ba7 slight change to error paths for convenience (RETURN_ERR)
This was SVN commit r2068.
2005-03-27 17:40:40 +00:00
janwas 2fa430a4e6 - fix bug (wasn't setting mount_point of dir being mounted => crash while writing screenshot)
- add check for changing filters while enumerating dirents
- add path_component_valid
- change iterator to only return valid entries (removing that burden
from user code)

This was SVN commit r2067.
2005-03-27 17:27:49 +00:00
janwas f777979cc8 detect: add posix.h so _SC_* defines are visible (enables mem detect)
in several files, expand one-line function bodies (hard to debug)

This was SVN commit r2066.
2005-03-27 17:24:57 +00:00
Ykkrosh bfe7c1b491 Made icon implementation less bad, so that it doesn't conflict with ScEd
This was SVN commit r2065.
2005-03-27 14:03:30 +00:00
janwas 204960c8ee add vfs_init, shorten load timeslice
This was SVN commit r2059.
2005-03-27 01:47:36 +00:00
janwas 6bf2600808 huge change:
- replace std::map with custom filename lookup container (more
efficient)
- split into 3 parts (was too big)
also added struct stat-like fields to vfsDirEnt

still under heavy development.

This was SVN commit r2058.
2005-03-27 01:46:54 +00:00