cursed awards

cursed awards

Azaremoth's epic game about bones, undead, demons and magic set in a futuristic environment.

Moderator: Content Developer

Post Reply
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

cursed awards

Post by dansan »

Hi Azaremoth,

Bibim told me he enabled TS support for TC. I have now enabled support at the replay site.

I have never played TC, so no idea if this applies: if you have awards or other things you want displayed at the replay site (like the Awards for BA and heroas in XTA (on the players page)), I will help implement it. Just tell me what you want, create some lua messages (I'll tell you about them when needed) and supply the artwork.

Greetings
Dansan
User avatar
azaremoth
Cursed Developer
Posts: 549
Joined: 17 Feb 2005, 22:05

Re: cursed awards

Post by azaremoth »

Hi dansan!

Yes - an implementation (adopted from ZeroK's end game screens) of awards is included in The Cursed. Showing these on the replay page would absolutely great! What is already there:

'Complete Annihilation Award'
'Fleet Admiral'
'Airforce General'
'Apocalyptic Award'
'Friendly Fire Award'
'Turtle Shell Award'
'Master Grill-Chef'
'Stunning'
'Traffic Cop'
'Angels & Dragons'
'Mind Mage Award'
'Share Bear'
'Spoils of War'
'Necromancer'
'Decorated Veteran'
'Big Purple Heart'
'Kamikaze Award'
'Mineral Prospector'
'Loot & Pillage'
'Rage Inducer'
'Head Hunter'
'Dragon Slayer'

I still want to add a few more like:

'Bughunter'
'Lumberjack'
'Fanatic'
'Lycanthropy'

but I need to implement the respective lua code for those. Thus it may take some time.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: cursed awards

Post by dansan »

I works like this:
* when awards have been calculated, the gadget writes a silent lua message to the chat
* it gets recorded in the demofile
* the replay site parses the demofile and finds the lua message
* the replay site displays the awards

BA does it in luarules/gadgets/gui_awards.lua#L416 lines 416-423.

XTA does it in luarules/gadgets/gui_endstats.lua#L617 lines 617-629.

Parsing is done on the replay site in srs/parse_demo_file.py#L417 lines 417-512. ID 161 is used by BA, ID 199 is used by XTA. I don't know where those IDs come from - use a different one...

Please create the messages like XTA - they are much easier to parse then those of BA.
User avatar
azaremoth
Cursed Developer
Posts: 549
Joined: 17 Feb 2005, 22:05

Re: cursed awards

Post by azaremoth »

OK - so dansan - I cleaned the awards up and they are working now.

I do generate a message that is looking like this:

CursedID-TeamID:awardtype/counter:awardtype/counter: ...

Resulting is these messages:
\180-1:pwn/96:shell/2217
\180-0:hero/150:hover/803:rezz/28
And the final list of awards is:
  • pwn
    bug
    lycan
    hover
    air
    nux
    friend
    shell
    fire
    emp
    slow
    dran
    cap
    share
    rezz
    ouch
    kam
    hero
    mex
    mexkill
    herokill
    drankill
    heart
    sweeper
It should be easy to parse that or are there any adaptions needed? IS the Team ID fine or should a player name be provided? Now I need to do the respetive pictures/award graphics for the replay site and ingame usage.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: cursed awards

Post by dansan »

Sounds good.

When you have a replay, send me a PM with the download location.
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: cursed awards

Post by dansan »

azaremoth wrote:OK - so dansan - I cleaned the awards up and they are working now.

I do generate a message that is looking like this:

CursedID-TeamID:awardtype/counter:awardtype/counter: ...

Resulting is these messages:
\180-1:pwn/96:shell/2217
\180-0:hero/150:hover/803:rezz/28
And the final list of awards is:
  • pwn
    bug
    lycan
    ..
It should be easy to parse that or are there any adaptions needed? IS the Team ID fine or should a player name be provided? Now I need to do the respetive pictures/award graphics for the replay site and ingame usage.
The Lua message is generated with an ID of 49. Its content starts with '180'. I don't know if 49 is already used for anything. Maybe ask an engine dev, if there could be a collision?
Anyway - I can parse those award lines.

I found that the list of awards is longer than the one above (from the provided replays and trophy pictures). Regarding the database design I'd like to know if
a) you expect it to grow regularly and
b) you want to do statistics about them?
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: cursed awards

Post by dansan »

BTW: what are the numbers? Multiplier, unit count, event count?
How do you want them displayed?
Is there an order?
User avatar
azaremoth
Cursed Developer
Posts: 549
Joined: 17 Feb 2005, 22:05

Re: cursed awards

Post by azaremoth »

dansan wrote:The Lua message is generated with an ID of 49. Its content starts with '180'. I don't know if 49 is already used for anything. Maybe ask an engine dev, if there could be a collision?
Anyway - I can parse those award lines.
The ID does not seem to be something I have control of. I did not find the right pieces of information in the documentation. Maybe discord can help here...
dansan wrote:I found that the list of awards is longer than the one above (from the provided replays and trophy pictures). Regarding the database design I'd like to know if
a) you expect it to grow regularly and
b) you want to do statistics about them?
I do not plan to expand the list regularly. The awards that are ingame are listed here (which actually should be identical to the list above): https://github.com/azaremoth/cursed/blo ... _names.lua
Some of the included trophy pictures are currently not used and I did not plan to change this anytime soon. Which additional awards are included in the replays?

BTW: what are the numbers? Multiplier, unit count, event count?
How do you want them displayed?
Yes - The numbers are counts (event counts, unit counts and damage counts depending on the award). I would love to have the numbers reported. Maybe just the number next to the award, so that people can see who did do most damage, did capture most capture points, take most damage or did necromance most units...
  • AWARD COUNTER STANDS FOR
    bug: Bugs killed (Unit counter)
    cap: Units captured (Unit counter)
    drankill: Dragons or Angels killed (Unit counter)
    emp: Stunned value (damage counter)
    fire: Burnt value (damage counter)
    friend: Damage to allies (damage counter)
    heart : Damage (damage counter)
    hero: Damage by hero (damage counter)
    herokill: Heroes eliminated (Unit counter)
    lycan: Werewolfs killed (Unit counter)
    mex: Mexes built (Unit counter)
    mexkill: Mexes destroyed (Unit counter)
    ouch: Damage taken (damage counter)
    point: Points captured (event counter)
    pwn: Damage dealt (damage counter)
    rezz: Necromanced (Unit counter)
    share: Units shared (Unit counter)
    shell: Damage by defenses (damage counter)
    slow: Slowed value (damage counter)
    sweeper: Pitts wiped out (Unit counter)

    anything else: Damage value (damage counter)
BTW: what are the numbers? Multiplier, unit count, event count?
How do you want them displayed?
Is there an order?
I do not have a special order for the awards in my mind.


Thanks for your support again!
dansan
Server Owner & Developer
Posts: 1203
Joined: 29 May 2010, 23:40

Re: cursed awards

Post by dansan »

OK - code is online.

Parsed all replays. Not much to see yet - only 2 replays have awards :) (click on 'Show winner...' button):
* http://replays.springrts.com/replay/1d2 ... f314f1c8d/
* http://replays.springrts.com/replay/532 ... aec5e415a/
Players:
* http://replays.springrts.com/player/1048/
* http://replays.springrts.com/player/977846/
User avatar
azaremoth
Cursed Developer
Posts: 549
Joined: 17 Feb 2005, 22:05

Re: cursed awards

Post by azaremoth »

Yeah! That is looking great! I like the counters. Now one can collect awards. A thousand thanks! :-)
Post Reply

Return to “The Cursed”