The Daily Click ::. Forums ::. Klik Coding Help ::. Do Groups Work in TGF?
 

Post Reply  Post Oekaki 
 

Posted By Message

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st August, 2003 at 11:16:30 -

I've heard that they don't, and it would explain some of the errors I get.

 
Craps, I'm an old man!

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
31st August, 2003 at 11:22:28 -

They work, it's just global groups that you may have a few problems with.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
31st August, 2003 at 11:26:13 -

yeah groups work fine

but ive never got global groups to work properly so i have to copy events into every frame so it makes games bigger but isnt much of a problem

 
.

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
31st August, 2003 at 11:27:54 -

i think we'd have all committed suicide long ago if groups didnt work. what errors are you getting?

 
www.thenatflap.co.uk

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st August, 2003 at 11:45:34 -

Just wierd shit, like when the Value of C = 4 on one of my ghosthunters in Ectoplasmic Bob, he's supposed to do an AI Action, but the value never gets set to 4 for some ungodly reason. I mean the code is correct, but TGF seems to "Lose" the value.

 
Craps, I'm an old man!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
31st August, 2003 at 11:52:18 -

are you sure it never gets set to 4? what i do to check in MMF is have a counter, and the event

+ Counter is overlapping object
- Set counter to value x of object

but you can't do that in TGF because there's no collison with counter events.

 
www.thenatflap.co.uk

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st August, 2003 at 11:56:53 -

No, all the coding is right, but the dummy counter I set up to always read that value NEVER says 4. It's strange really, and it's pissing me off because it's screwing up my teamwork AI.

 
Craps, I'm an old man!

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
31st August, 2003 at 12:01:28 -

if shadowcaster were here, he'd simply reply

"Buy MMF".

or patch TGF. or something. it has been known for random fuckups to occur from time to time.

 
www.thenatflap.co.uk

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st August, 2003 at 12:10:19 -

DAMMIT! I'm so close to finishing this AI...

 
Craps, I'm an old man!

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
31st August, 2003 at 12:37:40 -

Nothing works in TGF. Not just the groups

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st August, 2003 at 12:40:05 -

It seems to crash regularly, THAT works

 
Craps, I'm an old man!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
31st August, 2003 at 13:01:06 -

TGF sucks. I did an event that restarted the level, and it re-created all of the objects in it (even backdrop) so that the level was impossible to complete!

 
My signature is never too big!!!

Cybermaze



Registered
  03/04/2003
Points
  853
31st August, 2003 at 14:01:46 -

There could be numerous explanations why it does not work as you think.

First of all, it could be a TGF problem. TGF is known to make problems but Im still more convinced the problem lies elsewhere. The most apparent suggestion is you made a mistake in the code. You may be convinced you made it 100% correct but sometimes one can become blind on one single problem. Ive experienced that before both with TGF/MMF but also in regular programming (Pascal/Java).

A few tips. Look for this.

If the counter never reach 4 there could be at least 2 things to look at.

1:
Problem: Maybe the counter is set to 4 correctly at some point in the top of the event list, then set to something else a bit down in the event list (maybe by a mistake). Now if the group you want to react on the counter is even further down it will never see the counter with the value of 4 as it was allready set to something else (like 1). Even if you show the value of the counter on the screen will you never be able to see that the counter reached 4. The screen is not updated until the event list is finished.

Solution: Check every event. Maybe you accidentally set a wrong counter to a value somewhere in the code. Its so easy to do ie if you use copy/paste or it is simply a type/click error.
Alternatively you could make a log file (textfile) and make every event print: event number + value of counter. Run the program for a while, then stop the program and examine the log file. You will be able to see the value of the counter for every event that has occured. Its a bit of a workload to do, but you will be able to see if the counter reaches 4 and which event lines alters the counters value.

2.
Problem: The group that should react when the counter is 4 is closed. Maybe the group is mistakenly closed.

Solution: Make a log file and every event that alters groups (or all events) print if the group is open or not. Alternatively you can begin by printing on the screen if the group is open or not.

I really hope this is helpful. Another help could be to not work with the code at all for a few days and then come back with fresh eyes. That can do wonders too.

Please post if/when/how you solved the problem.

 
If you knew, I would have to kill you...

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
31st August, 2003 at 15:03:05 -

Sorry, my code is all formatted correctly, the processes are flowed in the correct order, and there is only 1 event that sets the value to 4. I'm actually really, really experienced in coding stuff in TGF and always stick to my rules which avoid errors like the ones you mentioned. Thanks anyway Cybermaze.

 
Craps, I'm an old man!

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
31st August, 2003 at 15:16:41 -

maybe you should code the level again...

 
My signature is never too big!!!
   

Post Reply



 



Advertisement

Worth A Click