Commit Graph

11259 Commits (master)
 

Author SHA1 Message Date
Günther Brammer f370a2198a Script: Put function name instead of function in the bytecode
The function name is used to look up the function at run time for some time
now.

committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 15:17:24 +02:00
Günther Brammer 675da642c3 Add Clonk Rage developer documentation
committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 15:11:51 +02:00
Günther Brammer 7e1fdec156 Make C4Language::Iconv not crash on NULL input
committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 14:37:37 +02:00
Günther Brammer d6cd92c988 Cleanups
committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 14:37:37 +02:00
Günther Brammer 9e08426f65 Remove most shareware restrictions
One can now start the developer mode and every scenario without
a registration, but the game still complains about not being registered.

committer: Günther Brammer <gbrammer@gmx.de>
2009-05-09 14:37:20 +02:00
Günther Brammer 77dabef7c7 Fix crash when building with g++ 4.3 or newer
This adds a true copy constructor to StdBuf and StdStrBuf.
Unfortunately, this constructor is sometimes prefered to the
move constructor when it wasn't with older compilers, always
referencing the original instead of copying makes the engine
crash, and omitting the copy constructor just creates an
implicit one which also causes crashes.
2009-05-09 03:29:28 +02:00
Nicolas Hake e6d1eca02e #- Remove unused files StdBitmap.{cpp,h} 2009-05-08 20:20:35 +02:00
Günther Brammer 43f2e17bb5 Linux: Update build instructions 2009-05-08 22:10:04 +02:00
Günther Brammer 61fa13f979 Linux: Update dependencies list 2009-05-08 21:56:56 +02:00
Günther Brammer cada2e8537 X11: Use background_pixel instead of background_pixmap to workaround a BadMatch error 2009-05-08 21:49:37 +02:00
Günther Brammer 145e647df1 Make ForEachFile not crash
It still does not work with wildcards, but does nothing in that case now.
2009-05-08 21:06:50 +02:00
Günther Brammer 4f811263fb Update autotools build to not require library copies 2009-05-08 20:56:43 +02:00
Günther Brammer f2be73cff8 Remove generated files.
Use autoreconf -i to get them back.
2009-05-08 19:23:57 +02:00
Nicolas Hake 9e6814ed9e #* Prepare project for prebuild dependencies 2009-05-08 19:04:28 +02:00
Nicolas Hake 0f050f0343 Import source 2009-05-08 15:28:41 +02:00
Günther Brammer 4b022c0a45 Give PropLists an ObjectNumber 2009-04-19 23:33:42 +02:00
Günther Brammer 64c7be0429 Garbage collect unused proplists to avoid memory leaks 2009-05-20 00:37:14 +02:00
Günther Brammer 07b58d88f3 Move some stuff to C4GameObjects 2009-04-19 00:23:58 +02:00
Günther Brammer cb1e6e6a5c Add a PropList set to C4GameObjects to keep track of all proplists
Also remove C4EnumPointer2. It was only used for C4Player object pointers,
which only need an offset, not a range.
2009-04-18 02:46:19 +02:00
Günther Brammer abe1bad6bd Add a global variable holding a prototype for actions
Either the engine or the script part of this should be replaced later.
2009-04-28 21:45:42 +02:00
Günther Brammer c86532ea6f Script to convert Clonk Rage objects to the new format
Currently converts Names.txt, ActMap.txt and Collectible to properties.
2009-05-20 00:36:08 +02:00
Günther Brammer c420a3bf3b C4Value does not store C4IDs anymore
Instead, C4IDs are converted from/to C4PropLists. This will have to change,
of course.

Objects can be created from prototypes which only inherit from C4Def
2009-04-12 14:04:28 +02:00
Günther Brammer b9f398b111 Replace C4ActionDef with C4PropList
C4Object now stores a pointer to a C4PropList instead of the Name and Number
of a C4ActionDef in the ActMap of the Object's definition.
2009-04-12 14:03:14 +02:00
Günther Brammer 427a2f2346 Collectible as a property 2009-04-11 16:38:31 +02:00
Günther Brammer 0898288a87 Merge C4DefCore and C4Def
The DefCore was only used by the editor and to get an id from a filename
for the drag and drop code. The former is dead, the latter does not need
the separation.
2009-05-20 00:34:13 +02:00
Günther Brammer 79f8d5496a Add CreatePropList script function
Is this needed?
2009-05-20 00:32:01 +02:00
Günther Brammer bf839b9a66 Call Definition in every definition at start
This is mainly intended to fill the proplist of the definition and replace
the defcore, but other one time initialisation could also be done at that
point.
2009-05-20 00:30:49 +02:00
Günther Brammer 1964e442f1 Add C4PropList literals
The syntax is { Key: value, "Key2": value2 , Key3 = value3 }
We might want to drop : or = later.
2009-04-12 02:56:41 +02:00
Günther Brammer 9a9a7fec62 Make C4Object::Name a property
Every proplist can have a name, so move the code there.
2009-04-03 21:06:29 +02:00
Günther Brammer c4b68c771d Move ::Game.ScriptEngine.Strings to ::Strings
This saves some typing and better reflects the role of the object:
It's no longer the list of strings that has to be saved in the savegame,
but is only used to ensure that no string is duplicated.
2009-04-03 23:53:48 +02:00
Günther Brammer 42d3b6e79a Add C4PropList
A Proplist is a map of C4Strings to C4Values which can chain lookups
to "Prototype" Proplists. This can be used to implement inheritance.

Proplists can be stored in C4Values.

C4Object now inherits from C4Proplist, C4Values can be converted between
those two.
2009-05-20 00:12:11 +02:00
Günther Brammer 6274cf7a5e Hold C4Strings in a hashtable instead of a linked list
I didn't measure wether this helps performance, but I plan to use the
generic hashtable for function lists and object fields, too.
2009-04-01 23:36:58 +02:00
Günther Brammer 529247da2c C4Network2ClientDlg does not label active or remote clients
Instead, silence stands for that, and inactive and local clients are
called out.
2008-06-11 22:17:42 +02:00
Günther Brammer d4ad94f1bf autotools: Remove superfluous variable from Makefile.am 2011-05-19 23:44:17 +02:00
Günther Brammer 4bf663c792 Remove unused Landscape.NoSky from the Scenario.txt 2011-09-24 18:17:48 +02:00
Günther Brammer f357570bb1 Use big landscape tiles when classic shaders are enabled 2011-05-31 01:28:31 +02:00
Günther Brammer f055ed27e8 Draw PXS Sprites a little bit smoother 2011-05-26 15:03:51 +02:00
Günther Brammer dfc799aa27 Rename C4Group_GetFileCRC/SHA1 to GetFileCRC/SHA1
These functions aren't used for files in groups and
consequently broken for them. Remove the dead code.
2011-09-15 20:16:00 +02:00
Günther Brammer 2fcdd4d929 Convert keyboard key names to utf-8 2011-09-28 01:12:45 +02:00
Günther Brammer 8941abb4f4 Display waiting-for-league-result in the gameoverdlg 2011-09-28 01:11:55 +02:00
Günther Brammer 1f160083d7 editor: Do not copy and delete the scenario before saving 2011-09-28 01:10:31 +02:00
Günther Brammer 562816cfe5 Clean up some unused variables and obsolete FIXMEs 2011-09-28 01:09:56 +02:00
Günther Brammer 9bfd8097ae Minimal.ocs can rely on Definition1 default 2011-06-07 01:13:35 +02:00
Maikel de Vries ebb5751d47 Tutorial4: Fixed losing weapons forever (#667) 2011-10-03 15:06:38 +02:00
Maikel de Vries 49bfc2aacb Objects: Stonedoor damage now visible through cracks (#669)
Thanks to ringwaul for the graphics.
2011-10-03 14:04:38 +02:00
Nicolas Hake 8073e1cb47 win32: Remove DirectX config option 2011-10-03 13:12:55 +02:00
Nicolas Hake cc672bbd00 win32: Automatically check for DbgHelp availability 2011-10-03 13:09:51 +02:00
Nicolas Hake 14f81d7eef Move cmake modules to separate directory 2011-10-03 13:03:22 +02:00
Günther Brammer 5ca85f97c5 CrewMembers are only banned from resurrection during Death callbacks (#532)
This avoids immediate resurrection, but allows Clonks to return later in
the same round, just like they can return later in the next round.
2011-10-02 18:47:21 +02:00
Maikel de Vries d9c431e7e4 Engine: Fix possible crash in C4Landscape::InsertDeadMaterial (#666) 2011-10-01 19:32:16 +02:00