Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I do believe I broke my game!  (Read 716 times)

Smew

  • Bay Watcher
  • I'll kill you with my bear face.
    • View Profile
    • Deep Games for Deep Gamers
I do believe I broke my game!
« on: September 06, 2009, 06:51:06 pm »

After inserting a BUNCH of new creatures, items, metals, etc, into my game, and dealing with the inevitable flooding in my error log, I've run into one small problem, "Unrecognized Damage Token: [ATTACKFLAG_WITH"
As you might imagine, I have 58 creature files, and an extremely large amount of creatures, searching each and every one and HOPING I catch the tag without an ] is ridiculous, so I ask, is there any quicker way to find this error?
As far as I know inforapid doesn't have the option for it, but I suppose I could be wrong.
« Last Edit: September 07, 2009, 04:46:19 pm by Smew »
Logged

bluea

  • Bay Watcher
    • View Profile
Re: A quicker way to search...
« Reply #1 on: September 06, 2009, 07:06:17 pm »

Since they're just text files, I'd use a programming-focused text editor that allows for searching a folder for a given text string.

(I'm on a Mac, my choice would probably be Textmate which probably isn't useful to you directly.)
Logged

Smew

  • Bay Watcher
  • I'll kill you with my bear face.
    • View Profile
    • Deep Games for Deep Gamers
Re: A quicker way to search...
« Reply #2 on: September 06, 2009, 07:39:51 pm »

Well, I decided to suck it up and downloaded inforapid, it definitely makes things easier, but my eyes will still have to be sharp enough to find the tag, thanks for the help, anyway!

bluea

  • Bay Watcher
    • View Profile
Re: A quicker way to search...
« Reply #3 on: September 06, 2009, 08:12:06 pm »

I'm missing something completely on why, exactly, your eyes would need to be sharp.

Even the cheesiest text editors have a "Find" command, no? And usually a "Find again" command. If you're searching for "[ATTACKFLAG_WITH ", you should only find places that are missing the bracket.
Logged

Smew

  • Bay Watcher
  • I'll kill you with my bear face.
    • View Profile
    • Deep Games for Deep Gamers
Re: A quicker way to search...
« Reply #4 on: September 06, 2009, 08:20:58 pm »

That's the problem, there's no space where the missing bracket is, if there was, I would have had this problem solved minutes after I found it with notepad of all things.
So, I have to look at nearly EVERY creatures raws, just to see if they have the missing piece.

Smew

  • Bay Watcher
  • I'll kill you with my bear face.
    • View Profile
    • Deep Games for Deep Gamers
Re: A quicker way to search...
« Reply #5 on: September 07, 2009, 04:37:52 pm »

Alright so, this problem may be unsolvable by me, I've found the problem file, but cannot for the life of me find the problem token, every single instance of ATTACKFLAG_WITH in there is properly closed, so if anybody wants to take a look for me, that would be great.
As for how I found out this is the file, I simply loaded up each of my creature files into a separate version of DF until I started getting that error in my error log.

http://dffd.wimbli.com/file.php?id=1410

bluea

  • Bay Watcher
    • View Profile
Re: I do believe I broke my game!
« Reply #6 on: September 07, 2009, 06:04:33 pm »

I don't see a problem with that file either.

But, if none of these: "[ATTACKFLAG_WITH" are ever followed by a -space-, do a search for "[ATTACKFLAG_WITH["
Logged

Taritus

  • Bay Watcher
    • View Profile
Re: I do believe I broke my game!
« Reply #7 on: September 07, 2009, 06:28:53 pm »

If the tag is followed by a line break, that won't work.
Logged



Adamantine Fist

  • Bay Watcher
    • View Profile
Re: I do believe I broke my game!
« Reply #8 on: September 07, 2009, 08:02:05 pm »

Hmm. This is very odd indeed. I've taken a look over the file myself, and can't seem to find any errors. It looks to me like it's fine, but the program doesn't agree with me as it's giving me the same error message. As far as I can tell, every single one is properly enclosed in brackets.
Logged
and D) involve Clippy, the helpful paperclip, to tell you what to do.
It looks like you are trying to commit elven genocide! What would you like to do?

Chariot

  • Bay Watcher
  • Turtle Trainer
    • View Profile
Re: I do believe I broke my game!
« Reply #9 on: September 07, 2009, 08:49:32 pm »

The problem is actually not with an [ATTACKFLAG_WITH] tag, but something on the same line.

In phantom ape:
[ATTACK:BYTYPE:GRASP:punch:punches:1:6:BLUDGEON][ATTACKFLAG_WITH]
[ATTACK:BYTYPE:STANCE:kick:kicks:1:7:BLUDGEON]

those are missing a MAIN/SECONDARY.

Change to:
[ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:6:BLUDGEON][ATTACKFLAG_WITH]
[ATTACK:MAIN:BYTYPE:STANCE:kick:kicks:1:7:BLUDGEON]

and that error goes away.
Logged

Smew

  • Bay Watcher
  • I'll kill you with my bear face.
    • View Profile
    • Deep Games for Deep Gamers
Re: I do believe I broke my game!
« Reply #10 on: September 07, 2009, 09:04:52 pm »

The problem is actually not with an [ATTACKFLAG_WITH] tag, but something on the same line.

In phantom ape:
[ATTACK:BYTYPE:GRASP:punch:punches:1:6:BLUDGEON][ATTACKFLAG_WITH]
[ATTACK:BYTYPE:STANCE:kick:kicks:1:7:BLUDGEON]

those are missing a MAIN/SECONDARY.

Change to:
[ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:6:BLUDGEON][ATTACKFLAG_WITH]
[ATTACK:MAIN:BYTYPE:STANCE:kick:kicks:1:7:BLUDGEON]

and that error goes away.
Aha! I had a feeling that was it, but wasn't sure whether or not those tags were needed.
Thank you for your help. :)