Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: Joey on October 29, 2002, 06:37:19 AM

Title: program for flags?
Post by: Joey on October 29, 2002, 06:37:19 AM
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?
Title: Re:program for flags?
Post by: Jelle on October 29, 2002, 06:46:39 AM
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
Title: Re:program for flags?
Post by: Joey on October 29, 2002, 06:48:38 AM
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.
Title: Re:program for flags?
Post by: Jelle on October 29, 2002, 06:59:50 AM
No, I wrote it some a few days ago I think...

Quote
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...
Title: Re:program for flags?
Post by: Kon-Tiki on October 29, 2002, 07:49:48 AM
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-
Title: Re:program for flags?
Post by: Jelle on October 29, 2002, 07:51:46 AM
Jelle is my name
Perl is the game

 ;D
Title: Re:program for flags?
Post by: Joel on October 29, 2002, 11:27:54 AM
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.
Title: Re:program for flags?
Post by: Joey on October 29, 2002, 02:43:15 PM
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.
Title: Re:program for flags?
Post by: Joey on November 10, 2002, 01:32:19 PM
did you make it yet jelle?
Title: Re:program for flags?
Post by: Kon-Tiki on November 10, 2002, 03:34:09 PM
He's finished it some time ago. You can get his searcher at his site or on the utilities-page of mine.

-Kon-Tiki-
Title: Re:program for flags?
Post by: Mokalus of Borg on November 11, 2002, 05:07:12 AM
I'm coming into this discussion a little late, but this is *exactly* why I wrote ARVO and ARVO-XML (http://www.angelfire.com/games/hexdomain/agisci/tools/index.html). 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.
Title: Re:program for flags?
Post by: Jelle on November 11, 2002, 05:29:20 AM
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