Author Topic: Q-Gears Revision 62  (Read 5629 times)

Snowy

  • *
  • Posts: 16
    • View Profile
Q-Gears Revision 62
« on: 2006-07-16 20:45:06 »
In revision 62, in the script.cpp file, some of the semi-colon's after i++ is missing, also, these variables:    

u8 entity_id;
u8 priority;
u8 script_id;

needs to be declared before the switch, otherwise redefinition occurs.  Just pointing this out, cause I needed to fix this to get it compiling under windows.

Great work Akari!
 8-)

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: Q-Gears Revision 62
« Reply #1 on: 2006-07-16 20:51:04 »
That would be me ^_^

I'm working on it as we speak. But I'm afraid my next bunch of commits are going to break things... Hold on to your hats. This UpperCase/lowercase thing is becomeing a project.

Snowy

  • *
  • Posts: 16
    • View Profile
Re: Q-Gears Revision 62
« Reply #2 on: 2006-07-16 20:54:35 »
lol, sorry halkun  :-D

That script file is HUGE :-P I'm lost already! hahaha

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: Q-Gears Revision 62
« Reply #3 on: 2006-07-16 21:01:38 »
Can you do me a favor, can you print out the changes you made to get script.cpp to compile? (Can you get the old version, and post a quick diff here?) I seemed to have borked it a little....


Snowy

  • *
  • Posts: 16
    • View Profile
Re: Q-Gears Revision 62
« Reply #4 on: 2006-07-16 21:12:42 »
Code: [Select]
   // Line no: 55 in script.cpp
   if (IsWait() == true)
    {
        return scriptPosition;
    }

u8 entity_id; // Added these
u8 priority;    // Same here
u8 script_id;  // This too ;)

    for (u32 i = scriptPosition; i < mLength;)
    {
        switch (*(mpBuffer + i))

Also, had to remove all the u8's before entity_id and so on...
eg:

Code: [Select]
case REQ:
            {
                entity_id = GetU8(i + 1);
                priority  = GetU8(i + 2) >> 5;
                script_id = GetU8(i + 2) & 0x1F;
                fieldModule->
mScriptManager.RequestRun(entity_id, priority, script_id);
                printf("REQ(entity=%x, priority=%d, script=%x)\n",
entity_id,priority, script_id);
                i += 3;
            }
            break;

And, ofcourse the i++ counters need their ;

That's it...

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: Q-Gears Revision 62
« Reply #5 on: 2006-07-16 21:37:47 »
Actually, I fixed it another way....

I'm up at revision 63, and in compiles clean on linux. Download that and everything should work now.

Snowy

  • *
  • Posts: 16
    • View Profile
Re: Q-Gears Revision 62
« Reply #6 on: 2006-07-16 21:46:29 »
aah, okay.

Great  :mrgreen:

Cyberman

  • *
  • Posts: 1572
    • View Profile
Re: Q-Gears Revision 62
« Reply #7 on: 2006-07-16 22:57:29 »
08halkun I thought you said you couldn't code?

Or was that you cuoldn't code if yuor life depended on it?

Hmmmm ...

Cyb

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: Q-Gears Revision 62
« Reply #8 on: 2006-07-16 23:12:33 »
Shhhh! It's a secret! Don't tell anyone!

I guess the cat's out of the bag.

I used to be a programmer (once upon a time) I was a relational database programmer for a bunch of police departments in the big city to my north.  I worked on the embedded computer systems that linked to a master database of contacts when you get pulled over. My job was to take data given to me that was dumped from some VMS machine, write a parser to get it into an SQL database, and then rationalize the database to create logical key/database groupings for display on a HTML front end, which I also worked with.
Side-technologies included setting up the police departments on an LDAP authentication system, with my own built-in schema hooks to PAM so you could auth on both Linux and Windows.

The whole shop was Linux/Unix based.

So what happened?

I burnt out after six months. I'm not talking about "I'm going to take a break" kind of burn out but a "I feel like I'm going to crash into a moutain eject-eject-eject" kind of burnout.

I quit being a Database programmer and became a Janator in a hospital, before I got fired from that job.

I never touched a line of code until I started Q-gears. Donno why. I still lothe application development, but it can be charming sometimes, and so I gave what I could.

Anyway, I didn't mean to pour out my life here. Let's just say that I code when my body feels like it, and I much rather be looking at pictures of Ayumi Hamasaki...



My goodness she's hot...
« Last Edit: 2006-07-16 23:24:36 by halkun »

Cyberman

  • *
  • Posts: 1572
    • View Profile
Re: Q-Gears Revision 62
« Reply #9 on: 2006-07-17 00:23:17 »
She's definately attactive and I think I would rather being talking to her than programming.
I think I would just be curious what makes her tick and what she's like (seeing pictures and reading articles are completely different than the real person :) ).

Nothing wrong with being human halkun we all are, well I think we are at least, I might be assuming too much.

Just remember you are a person first a programmer never. You do this stuff for fun not because your life depends on it.

Back to the subject at hand...

Hmmm do we have an established syntax for FF7's script language?

halkun

  • Global moderator
  • *
  • Posts: 2097
  • NicoNico :)
    • View Profile
    • Q-Gears Homepage
Re: Q-Gears Revision 62
« Reply #10 on: 2006-07-17 00:28:05 »
Good question.

New thread on that.