Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Suggestions

Suggestions Post ideas and suggestions here.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2011, 04:37 AM
Juin Juin is offline
Member
 
Join Date: Feb 2011
Location: Pyongyang, North Korea
Posts: 81
Default Server log entries

I'm writing a little script to make the pseudo-gamemode of co-op a little less tedious and more fun to play. To make the features I have in mind functional, I need a couple of things:
  1. Add a log entry for gameStart (using the word "game" assuming a "round" has several "games"). I need to know this for the 1DE, TBD and 1DM modes, at least.
  2. Add a log entry for gameEnd (same as above, but for the end). Parameters: winTeam (winning team color, 0 if tie).
    If you feel the urge to add more parameters to it, consider the game duration (in seconds). Ideally, the events that would produce this log entry would be: timer ran out, /balanceTeams, ball lost, all opponents dead (in 1-life modes), base destruction, changeMap, /assignTeam on the last player alive of a team - basically anything that would cause the game to end.
  3. Team orientation. It's really, really important for me to know the orientation (left/right) of the teams. I can think of three places you could add this:
    1. In the suggested gameStart entry:
      {"port":27276,"time":31337,"leftTeam":3,"rightTeam":4,"type":"gameStart"} (That says the game started, the left team is red and the right team is blue.)
    2. In the teamChange entry:
      {"port":27276,"time":31337,"player":2,"team":4,"teamOrientation":0,"type":"teamChange"} (Player 2 changed to the blue team, left side.)
    3. Finally, the most elegant and space-efficient solution I think is including it in the mapChange entry:
      {"port":27276,"time":31337,"map":"1de_coop_101","t ype":"mapChange","mode":"1de","leftTeam":3,"rightTeam":4} (Changed to 1de_coop_101, left team is red, right team is blue.)
  4. Not sure whether full/custom random is visible to the server, but if it is, could you add a random parameter to the "spawn" log entry? Maybe use a value of 1 for full random, 2 for custom, 0 for neither. Viz:
    {"port":27276,"time":31337,"plane":"Loopy","player ":1,"perkRed":"Tracker","perkGreen":"Heavy Armor","team":5,"type":"spawn","perkBlue":"Turboch arger","skin":"No Skin" "random":2} (Full random)
    That would be greatly appreciated, as I'd like to include that in my ranking algorithm.
  5. Option to disable "Press T to balance teams". Maybe through server_configurator.

That's it for now. In return for your prompt help, demo users will be incentivized to buy the game by having hindered stats, such as being limited to a low level in our level system, or being unable to buy tokens with their bounty points. Cheers!

Last edited by Juin; 09-02-2011 at 01:45 AM. Reason: Increased specificity.
Reply With Quote
  #2  
Old 08-23-2011, 01:47 PM
phong phong is offline
Senior Member
 
Join Date: Jul 2009
Location: Chicago
Posts: 372
Default

I haven't looked at the logs in a while but all of this information is currently obtainable. The only thing I'm unsure of is (3), as I can't remember how I got around the issue with tbd/ball/tdm maps having different team colors depending on who made the map.
Reply With Quote
  #3  
Old 08-23-2011, 08:53 PM
Juin Juin is offline
Member
 
Join Date: Feb 2011
Location: Pyongyang, North Korea
Posts: 81
Default

phong, are they obtainable from the logs? I tested this with a friend and the log didn't produce anything meaningful. The only solution I could think of was taking "spawn" log entries as the starting point in 1DE games, and the base's structureDestroy entry as the end, but that's not pretty or reliable.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:21 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC