Author Topic: GMF Queries  (Read 5424 times)

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #20 on: September 07, 2011, 04:25:15 PM »
DP:

Does
Code: [Select]
*USE_DISPLAY_PROXY 1 make the relevant object invisible in the game?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: GMF Queries
« Reply #21 on: September 07, 2011, 04:39:47 PM »
DP:

Does
Code: [Select]
*USE_DISPLAY_PROXY 1 make the relevant object invisible in the game?

It allows you to choose a display mesh for the object. Usually, in RA2, the display mesh has a collision proxy, but you can also have a collision mesh have a display proxy - the end effect is the same.

So yes, if you set an empty mesh as a proxy for an object, it will become invisible, but still collide with the world.
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #22 on: September 07, 2011, 04:42:06 PM »
Thanks, I think I understood that.

Edit: Though I'll give this method a try I presume I could circumvent it by making the material transparent?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: GMF Queries
« Reply #23 on: September 07, 2011, 06:27:44 PM »
Thanks.

Also, regarding POV's, I'm probably being an idiot but I've confused myself again.

A while back, Trov explained  them to me and said this:

#self.AddPOV(POV_ID,X-Coordinate,Z-Coordinate,POV_ID)

I look at the BBEANS arena, and its POV's don't seem to correspond to that:

EG:

self.AddPOV(3, (-5, 5), (3, 2))

How is (-5,5) the X co-ordinate?

Or is (-5,5) the two co-ordinates, and (3,2) something indicating ID 3 joins with ID 2?
Whoops typo on my part.... I meant "self.AddPOV(POV_ID, XZ-StartingCoordinate, XZ-EndingCoordinate)" where the coordinates may be either tuples or lists and the ID is an integer.

As for the transparency, Sage is right so this is my take on saying roughly the same thing:
-As long as the display proxy is null, telling the game to use it will make the object invisible (not visible but with collisions). The opposite effect is possible when using your display mesh without the collision mesh (visible but without collisions). When you aren't using null or a vertex-less mesh, it is possible to associate display with collision from either object.
-Alternatively, you may use a transparent skin.

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #24 on: September 11, 2011, 10:50:25 AM »
How do I make objects in the GMF damaging, and is it possible to give them frequency?
« Last Edit: September 11, 2011, 02:36:25 PM by G.K. »
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: GMF Queries
« Reply #25 on: September 11, 2011, 06:31:47 PM »
Damage is set in the .py like this:
 
self.SetSubMaterialSound("spikes1", "metal", 2, "Sounds\\hzd_spike_hit.wav")
 
This is the code for the spikes in the Containment Cube.  spikes1 is the name of the object, metal should always be metal, 2 is the damage level (similar to material = metal damage in components), and the last parameter is obviously a sound file for when bots hit it.
 
Frequency cannot be done in arenas to my knowledge.
 
Also, something to note is that if you put more than one of the same object in the RBCollection, and then apply damage to it, only the first one will actually do damage.  Each damaging object needs its own mesh object.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #26 on: October 22, 2011, 05:58:59 PM »
Anybody know what I need to do to fix this problem when compiling?



The arena doesn't show up in the ingame list once compiled.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline JoeBlo

Re: GMF Queries
« Reply #27 on: October 23, 2011, 01:30:21 AM »
I dont really do this stuff much these days so I kinda have forogtton a lot but I do think you may have brackets and indentations out for that first one..

never seen the "J" error message

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: GMF Queries
« Reply #28 on: October 24, 2011, 03:26:48 PM »
I would have to see the GMF to identify this. Like Joe, I haven't done much in the GMF category in quite some time. If I had to guess, one of your counts are too high.

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #29 on: October 24, 2011, 03:32:27 PM »
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #30 on: October 27, 2011, 08:40:40 AM »
DP: I've been through each step of adding the new material, geomobject and rigidbody individually to the gmf. I made sure all the counts were up-to-date. I got the same error again. Any ideas?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Madiaba

Re: GMF Queries
« Reply #31 on: October 27, 2011, 05:32:39 PM »
Hey, guys.
GK, may I have the rest of the arena too, so I can look at your work?
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #32 on: October 28, 2011, 04:16:19 AM »
Sure. I'll PM you.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: GMF Queries
« Reply #33 on: October 29, 2011, 11:34:20 PM »
Your light is kind of wonky.  *USE FAR ATTENUATION 1987643832  should be *USE FAR ATTENUATION = 0
 
There are four attachment points after the four start points that should not be there.  Attachment points don't do anything in arenas.  It probably doesn't help any that some of those attach points have the same name as the start points either.  Could be messing things up.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #34 on: October 30, 2011, 11:25:23 AM »
Those AP's have always been in there and not been a problem. I'll try removing them but I'm not expecting anything though.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: GMF Queries
« Reply #35 on: October 30, 2011, 09:27:01 PM »
Oh yeah.  *MATERIAL_FALLOFF Other should be *MATERIAL_FALLOFF In.  Shouldn't cause compilation errors so it may not be your main problem, but I've had arenas crash before because of that.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #36 on: October 31, 2011, 02:06:10 PM »
I'll try it, thanks.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: GMF Queries
« Reply #37 on: November 01, 2011, 07:48:40 AM »
[noae]
Anybody know what I need to do to fix this problem when compiling?

(Image removed from quote.)(Image removed from quote.)

The arena doesn't show up in the ingame list once compiled.
[/noae]

Yes, I know the messages printed by my compiler are cryptic - the parser could really use some work ;).

Basically, the first error means that in a place that the parses expected an object type, you have some wonky closing bracket instead. The second error shows you the line and text where the error happened.
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: GMF Queries
« Reply #38 on: November 01, 2011, 01:02:17 PM »
Could you interpret what line it is please? There's notihng on line 774
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Re: GMF Queries
« Reply #39 on: November 01, 2011, 06:03:27 PM »
Could you interpret what line it is please? There's notihng on line 774

It's not actually the line IIRC... You have to resize the messagebox to get the full text of the titlebar. If that doesn't work, click somewhere on the messagebox, presst CTRL-C, and then CTRL-V in notepad - this will show you the exact message that was supposed to be present in the title bar.
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org