Code: Show/Hide abs, acos, acosh, asin, asinh, atan, atanh, ceil, cos, cosh
exp, floor, log, log10, log2, round, sin, sinh, sqrt, tan tanh, trunc |
Code: Show/Hide atan2, hypot, max, min, mod, remainder
|
Code: Show/Hide +-----------------+
| Menu Formatters | +-----------+-----+---+ | Formatter | Default | +-----------+---------+ | hs | * | | simple | | +-----------+---------+ |
Code: Show/Hide Menu Formatters
----------------- Formatter|Default ----------------- hs | * simple | |
Code: Show/Hide diff -r 443387f9c075 -r 005e019b97c8 src/include/player.h
--- a/src/include/player.h Fri Nov 09 04:16:56 2007 -0800 +++ b/src/include/player.h Mon Apr 06 00:44:18 2009 -0700 @@ -155,6 +155,7 @@ int rotation; /**< rotation value (0-63) */ unsigned bounty; /**< current bounty */ unsigned status; /**< status bitfield */ + int energy; /**< current energy */ }; /* pyconst: define int, "STATUS_*" */ |
Code: Show/Hide diff -r 443387f9c075 -r 005e019b97c8 src/core/game.c --- a/src/core/game.c Fri Nov 09 04:16:56 2007 -0800 +++ b/src/core/game.c Mon Apr 06 00:44:18 2009 -0700 @@ -518,6 +518,7 @@ p->position.rotation = pos->rotation; p->position.bounty = pos->bounty; p->position.status = pos->status; + p->position.energy = pos->energy; } if (p->flags.sent_ppk == 0 && !isfake) |
Code: Show/Hide asss@*******:~/asss-1.4.4/src$ patch -p1 < patch1.diff
can't find file to patch at input line 4 Perhaps you used the wrong -p or --strip option? The text leading up to this was: -------------------------- |diff -r 443387f9c075 -r 005e019b97c8 src/include/player.h |--- a/src/include/player.h Fri Nov 09 04:16:56 2007 -0800 |+++ b/src/include/player.h Mon Apr 06 00:44:18 2009 -0700 -------------------------- File to patch: |
Quote: |
To get spawner to compile, you'll need the modification to game.c/game.h in 5bbdeb509511dd9efbf5872ebf656bb3e0a7615b of the branch asss.asss.hs. Or if you don't want/need items to affect energy viewing, you can just comment out the offending sections in the spawner.
|
Code: Show/Hide gcc -std=gnu99 -pipe -I. -Iinclude -I/home/anon/Desktop/asss-1.5.0rc1/build -Ihscore -Ihs_util -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -Wno-unused -c -o /home/anon/Desktop/asss-1.5.0rc1/build/lexer.o /home/anon/Desktop/asss-1.5.0rc1/build/lexer.c In file included from hs_util/lexer.l:3:0: /home/anon/Desktop/asss-1.5.0rc1/build/parser.h:89:14: error: unknown type name ?ParseObject? int yyparse (ParseObject *parse_object, yyscan_t *scanner); ^ make: *** [/home/anon/Desktop/asss-1.5.0rc1/build/lexer.o] Error 1 |
Onuzim wrote: |
I won't ask about Windows compiling. |
Dr Brain wrote: |
[..]
The only tricky part on windows is getting flex and bison installed. If you're not going to be doing any development, you could just take the output files from your ubuntu machine (after making the above changes) and compile them on windows. |