program for flags?

Joey is there/or could someone make a program that checks all you agi source and tell you either what flags you have used, or which ones you havent. i get confused about which ones i have available cause i didnt go in order. i skipped around. ex: 109, 187, 54

i used all different flags and cant keep track of the ones i used. it wouldnt be too hard to make a program like this, would it?
jelleghys I think I can do that (I'll try when I get home)

In the meantime: I made a program (which is on my site), it can search in all logics! So if you want to use a flag and you are not sure if you have used before (and if you have, in which logic), download the program and use it

example:
searcher 0 80 f54
this will check logics 0 to 80 for flag 54


- Jelle
Joey oh awesome!! did you just do that now? that was quick. when you get home, do you think you could make this thing in a day? also, maybe we could have it as a button in agi studio! like pic edit, you have to put the .exe in the folder, then you can click on the button and access pic edit.
jelleghys No, I wrote it some a few days ago I think...

when you get home, do you think you could make this thing in a day?

I may be able to do that, but I don't say I am gonna...

I'll see when I get home... If I have nothing else to do, I'll give it a try...
Kon-Tiki
Jelle wrote:

I think I can do that (I'll try when I get home)

In the meantime: I made a program (which is on my site), it can search in all logics! So if you want to use a flag and you are not sure if you have used before (and if you have, in which logic), download the program and use it

example:
searcher 0 80 f54
this will check logics 0 to 80 for flag 54


- Jelle

Niiiiiice one, Jelle. Thought about suggesting such a feature to Nailhead, because when you start having lots of logics, it'll be difficult to manage them properly and can result in double flags/variables, which will cause bugs.
This tool'll save lots and lots of time. Good job on that, Jelle.

-Kon-Tiki-
jelleghys Jelle is my name
Perl is the game

;D
Joel not to discourage you from making this....Joey, wouldn't it be easier to just take a little bit of time to organize your code? yes, it will take some time and effort, but it's well worth it. Group all your flags together in defines.txt and set aside a certain range to use as temporaries and locals, and you don't have to worry about searching all the logics to figure out if a flag has been used or not.
Joey well i will do that for all future games, but this will be handy. i dont feel like wasting time looking through all the code when i could be finishing the demo.
Joey did you make it yet jelle?
Kon-Tiki He's finished it some time ago. You can get his searcher at his site or on the utilities-page of mine.

-Kon-Tiki-
Mokalus_of_Borg I'm coming into this discussion a little late, but this is *exactly* why I wrote ARVO and ARVO-XML. They generate your "defines.txt" for you, so you don't have to keep track of your variables or flags.

<advertisement tagline>So if you don't want to just search for which variables and flags are used, use ARVO!</advertisement tagline>

Mokalus of Borg

PS - I think it's a slightly better solution than searching for used variables.
PPS - You could also wait for Nick's new compiler.
jelleghys Good one Mokalus of Borg!

I made that searcher to look for a particular flag/object/blabla,... I was/am making changing the codes from KQI using a defines file. I needed that searcher so I could see what a particular flag was used for.

My way of making a game is like this:
Global flags are written down in the defines file... Then they are defined in all logics, if they are in the define file I know that they are global. I don't care about local flags, just because they are local, I (re)set them in the (f5)-block in order to avoid flags.
Joey if you start making a new game, maybe you should try to do it like this, you won't have those problems you're having now.

Since Mokalus of Borg made a wonderful program, I'm not going to make one too.


Jelle