Warfare Errors Part 3

Posted by Lupercus on Thu 28 Mar 2002 03:49 AM — 4 posts, 15,602 views.

#0
And finally, fight.c

gcc fight.c -Wall -O -ggdb -DNOCRYPT -c -o obj/fight.o
fight.c: In function `one_hit':
fight.c:592: warning: suggest explicit braces to avoid ambiguous `else'
fight.c: In function `damage':
fight.c:776: warning: suggest parentheses around && within ||
fight.c:881: parse error before '(' token
fight.c: At top level:
fight.c:1009: parse error before "if"
fight.c:1046: warning: type defaults to `int' in declaration of `tail_chain'
fight.c:1046: conflicting types for `tail_chain'
merc.h:2556: previous declaration of `tail_chain'
fight.c:1046: warning: data definition has no type or storage class
fight.c:1047: parse error before "return"
fight.c: In function `dam_message':
fight.c:2104: warning: `attack' might be used uninitialized in this function
make: [obj/fight.o] Error 1 (ignored)

Thank you for any feedback on this. I really want to get this to work.

Lupercus
Australia Forum Administrator #1
This is very hard to comment on. You have given the error messages, but not the code that causes them. You say you "got some code" and "fixed some stuff up". It is hard to say whether:

* The original code didn't work
* It wasn't designed for ROM, or this version
* The patches didn't work properly
* Your fixes caused problems
#2
Alright, I'll try what you've suggested so far. Would it help if I provided the code?

Lupercus
Australia Forum Administrator #3
I can't really debug patches provided by a third party to tens of thousands of lines of ROM code.

I suggest you go to where you got the patches and see if they have a patched version you can have that compiles OK.