Author Topic: Changing the Team Events from 2-player to 4-player events.  (Read 3425 times)

Offline Madiaba

Changing the Team Events from 2-player to 4-player events.
« on: December 03, 2006, 08:49:57 AM »
Could someone please help me.
I am trying to make more '4-player' Events, but I do not know/understand some of the Events txt file formatting.

Does someone know to what these numbers refer:
     >>>the number just under Event's description
     >>>the three numbers at the bottom of each Event
-what are the for?
-what are they correlated to?
     >>>the arena name ('Combat Arena') does not correlate to the arena files in its 'Arenas' folder, nor any file within that folder, for they are all spelled differently.  Maybe a database file?.. or for a random generator reference?

Any help would sure be appreciated.
Thanks for your time,
Madiaba

Quote
2
Blade Tournament
This team….
2 <----------------------------------What does this # refer to?
Arenas\event_results\prizes\Fruit_Punch\Fruit_Punch.gmf
You didn't win,
Arenas\event_results\prizes\Vacation_Photo\vacation_photo.gmf
Well, you made it past the first round.
Arenas\event_results\prizes\Spike_Trophy\Spike_Trophy.gmf
You won the event!
UI\teamhq\events\trophies\Spike Trophy.tga
UI\teamhq\events\ev_blade.bmp
Combat Arena <----------------[b]What does this arena name refer/correlate to?
Arenas\box\box_preview.bmp OK here.
4 <
1 <-----------------------What do these three #s refer to?
3 <
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 Blink

  • Antweight
  • Posts: 53
  • Rep: 0
    • View Profile
    • http://www.s8.createphpbb.com/pyromaniac/index.php?mforum=pyromaniac
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #1 on: December 03, 2006, 12:32:10 PM »
sorry dude i dont have a clue. unless clicky knows, ur out of luck

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #2 on: December 09, 2006, 12:49:09 AM »
The "Combat Arena" refers to the name of the arena as displayed in the in-game arenas list (this is also in the arena's py under name="Combat Arena").  As for the numbers, I might have known what they do at one time, but I've forgotten now.  If I remember I'll post again.

What you can do though, is find a four player event and copy/paste the block of parameters over another event you don't mind getting rid of.  Then just change the ID (the first number) to the event you replaced, and anything else like arena, preview, etc. and it should work.

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 Madiaba

Regarding the 'Events' file of the main RA2 directory.......
« Reply #3 on: December 16, 2006, 11:18:11 PM »
For whomever; I through investigation (foolin' around), discovered what some of purposes of these lines and numbers are:

Blade Tournament
This team…. <---------This is the in-game Event description.
2<---------------------------------------------------This is the number of rounds in the event
Arenas\event_results\prizes\Fruit_Punch\Fruit_Punch.gmf
You didn't win.
Arenas\event_results\prizes\Vacation_Photo\vacation_photo.gmf
Well, you made it past the first round.
Arenas\event_results\prizes\Spike_Trophy\Spike_Trophy.gmf
You won the event!
UI\teamhq\events\trophies\Spike Trophy.tga <-----This is a picture of the trophy for winning the entire event.
UI\teamhq\events\ev_blade.bmp <------------------This is the in-game event logo.
Combat Arena<------------------------------------This is the name of the arena in the corresponding py file (Thanks ClickBeetle)
Arenas\box\box_preview.bmp<---------------------This is the in-game event arena preview.
4<-----------------------------------------------------This is the number of bots in the event
1<-----------------------------------------------------Still don't know what these last two #s refer to?!?!
3<



A couple notes:
1:There is (and must be) a correlation between the number of bots in the event and the number of rounds in that event.  If there are 2 bots in the event then there must be 4 rounds; and if a 4 bot event then there must only be 2 rounds. Thus these two # slots must either be a 2 or 4 and never the same as the other.
2:The sets of 'prize' and corresponding 'textual response' count (ie.
Quote
Arenas\event_results\prizes\Fruit_Punch\Fruit_Punch.gmf
You didn't win
Arenas\event_results\prizes\Vacation_Photo\Vacation_photo.gmf
Well, you made it past the first round.
Arenas\event_results\prizes\Spike_Trophy\Spike_Trophy.gmf
You won the event!
)
must be the same as the number of rounds (to respond to a loss at each round), plus one more to (cover a win of the whole event). Thus there should be 3 sets for a 2-round event, and 5 for a 4-round event; in other words
-     all sets should 'en-prize' and 'describe' a potential event loss at each round,
-     except the last set that does the same for an event win (which can only occur after winning the final round).  
(One could also just copy and paste this section from another 2 or 4 round event, and leave or change the 'prize' and corresponding 'textual response')
(PS: Shown above is a 2-round event).

Madiaba
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 Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #4 on: December 16, 2006, 11:33:16 PM »
Aha.  I think I got the number of rounds wrong in at least one event in DSL, because this one time FB did a 1-on-1 tournament and there were only 2 rounds.  Might also explain some mysterious crashes on the Ocean Platform and Compressor.  I'll have to do something about 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 SpyGuy

  • *
  • Posts: 328
  • Rep: 0
    • View Profile
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #5 on: December 17, 2006, 07:59:14 PM »
Nice work on the sleuthing, Mad.  I'm sure Click, FB, and the others doing the events will be much appreciative of it.  I wouldn't have had the patience to do all that ....

Offline Madiaba

Changing the Team Events from 2-player to 4-player events.
« Reply #6 on: December 18, 2006, 07:03:37 AM »
Thank you guys for your help.
Clickbeetle, I found a couple errors in the Ocean Platform and Compressor arenas and now have them working much better.  They no longer glitch at event start up with stagnant AI bots and/or a dark screen with only sound. If I can help please let me know.

I did want to throw out another question for some help;
Does anyone know what game file selects and matches weight classes for events and exhibition? (lightweight with lightweight, etc.)  
I have gone through every Python file I could find and could not see (or recognize) it.

Thanks again,

Madiaba :)  (mod-ee-aba)
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 Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #7 on: December 18, 2006, 12:28:33 PM »
The weightclass limits are set somewhere in the exe.  You would need the source code to change them, but unfortunately that's never going to be released because RA2's programmer (Perry Board) doesn't work at Gabriel Interactive anymore.

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 Madiaba

Events.txt-(for Compressor+Ocean PLatform arenas)-repaired
« Reply #8 on: February 09, 2007, 09:55:25 AM »
CB,
As mentioned above, here is the repaired Events.txt by itself (.rar file) for DSL2.  This will repair the Compressor and Ocean Platform Arenas for the in-game 'Events'.
I can't seem to get it to you via email intact so here it is.

In dissecting the Events.txt (described above) I thought that maybe I had repaired something in addition to it to get these arenas to work. But I did not think so. So to test, I downloaded a fresh(virgin) compressed DSL2 from DSL-TC three times, and just copied this txt. into the main directory and it worked every time,... and is still working.

The numbers were the problem. Might I suggest that you make sure that the rest of the info in these 2 particular arena events, in the Event.txt, is right and properly routed, the number of rounds, bots and sets of 'prize and corresponding textual response' count are correct? (check previous post above).  And also 'outside' the Events.txt, that the trophies and pics are right in label, size, and in there proper locations.  (Sometimes I change something trying to fix a problem and forget to put it back. And I would esp. never notice the change because it was already not working).

I tried to upload an .rar of a complete stock DSL2 program with 'working' Compressor and Ocean Platform Arenas, but it would not upload (too big?-179mb). I don't know the limit for this forum.
Is there another place to upload it? or do you want me to send you a cd?
But, the .txt should be enough. I and my sons have been using both those arenas in 'Events' for a couple months now.... , but if you need the whole program let me know how to get it to you.

I can see you're very busy with the tourneys (BTW, which is much appreciated).

Let me know about any problems.
Thanks,
         Madiaba
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 Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #9 on: February 10, 2007, 10:27:44 PM »
That one does work.  The game runs fine and so do the tournament events.  Definitely will be included with the 2.1 patch.

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 Mr. Weedy

  • Heavyweight
  • Posts: 477
  • Rep: 0
    • View Profile
    • http://www.acidplanet.com/artist.asp?songs=546612&T=8556
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #10 on: February 11, 2007, 04:09:28 AM »
This goes off-topic now, but will the 2.1 patch give more hitpoints for the axle mounts so they could be used better in combat, because now they fall off just too easily and also what is going to be included in the 2.1 patch?
I was Da beta tester Da da dada DA, Da. And that felt good.  :mrgreen:

Offline SpyGuy

  • *
  • Posts: 328
  • Rep: 0
    • View Profile
    • Awards
Changing the Team Events from 2-player to 4-player events.
« Reply #11 on: February 11, 2007, 07:05:39 PM »
Quote from: inplabth
BROKEN LINK!!!


Try it again - worked fine for me.