Crediting points for Shanes Bomb

More
20 years 5 months ago #10647 by MajorTom
Special unit Stats are in the game now!




Roi,
Good work for that not being compiled! I only had to change a couple of very minor things.

This is only the static version. Now that it's working properly, I would like to spare my old brain some troubles and send it to you to put the dynamic (scrollbar) version in the gui script. Ok?

I should have left it up to you to put in the game in the first place, because I had to mess around with the splitters for about 2 hrs. before I finaly got the hang of it and got them aligned properly. (also had to resize the Team Reaults windows too)

btw, The Game Ended query issue is solved too. On the server it's
bool iMultiplay.EndGame();

We have a bit more GUI work to do:
When bots are in the game the scores look "wrong" most of the time.
Kills, deaths and points don't seam to add up properly.
( searched for possible errors for hours on end until i finaly realised: )

The reason is; the stupid bots often play "High Noon" with the armed stations and let themselves get killed.
Station kills are credited to the team point totals, but aren't shown as kills in the player stats. Since you do see the actual "died" count next to the bots name, it is confusing

We need to fix that using roughly the same method (dummy bot score entries).
I think they should go into the splitters along with the player names and stats but as virtual player named "base kills".
Shouldn't be too much work?



Iwar2 Multiplayer Fan Site

Please Log in or Create an account to join the conversation.

More
20 years 5 months ago #10654 by Roi Danton

Originally posted by MajorTom

This is only the static version. Now that it's working properly, I would like to spare my old brain some troubles and send it to you to put the dynamic (scrollbar) version in the gui script. Ok?

Yes, I'll do it and put a screenshot of it here that you'll see what is possible. So, status: awaiting the script. ;)

I think they should go into the splitters along with the player names and stats but as virtual player named "base kills".
Shouldn't be too much work?

Wow, it must have been a great portion of time to determine the reason that causes the wrong kills.
Question regarding GUI: You mean, the dummy bot should be added to the player list as an additional List entry in the stats with the name "base kills"? (sorry for such questions 'bout simple things, but I want to be for 100% sure about what you want to do/what you meant)

~Buda5 Designer & Scripter
buda5.firstones.com


~Buda5 Designer & Scripter
buda5.firstones.com

Please Log in or Create an account to join the conversation.

More
20 years 5 months ago #10660 by MajorTom
I just uploaded the new dev version. I'll send you the pog scripts tomorrow morning.

Originally posted by Roi Danton

Wow, it must have been a great portion of time to determine the reason that causes the wrong kills.

Lol, I spent hours [:I] and finaly realized the pog functions for calculating the scores were correct and the GUI too (but it just didn't show everything)
The died count and total team points did sum up correctly but player kills and died count didn't match. Also the sum of player points didn't equal the total team points, and the sum of player kills didn't match the total died count. It was very confusing [xx(]

Question regarding GUI: You mean, the dummy bot should be added to the player list as an additional List entry in the stats with the name "base kills"? (sorry for such questions 'bout simple things, but I want to be for 100% sure about what you want to do/what you meant)

Yes, but on second thoughts, if I do it right in the game script and in the ServerOnUpdateScores function the name "*Base Defenses" should show up automatically and get the appropriate color too.

Iwar2 Multiplayer Fan Site

Please Log in or Create an account to join the conversation.

More
20 years 5 months ago #10673 by MajorTom
It's not completly done yet, but we're getting there:



The X-Wings are consistently the best bot ships (Yoda and Traitor are flying one in the screen above) The points are typical for every match I've played.

Btw: LoL, For testing I have the game set at 5 mins. It's lots of fun to get out and try and bomb a station when there are that many bots (8) buzzing around.

There is still a little bug in the points and deaths tallys but I'm hot on it's trail.


Iwar2 Multiplayer Fan Site

Please Log in or Create an account to join the conversation.

More
20 years 4 months ago #10683 by Roi Danton
Ahhh, looks quite good!

Scrollbars:
I had no luck with scrollbars to make one for all lower splitters. Maybe I can make the first version (with a scrollbar around the whole splitters) with a better layout .. I'll see.

Annotation:

1st
B/c you said that Yoda and Traitor are flying X-Wings - is it possible to easy add the ship type in a new splitter next to the player names by decreasing the other splitter sizes like Name/Team (decreasing Kills/Died could 'cause problems with a german version).
Reading out the sim ini of the appropiate player (hopefully this is possible?), trimming the left string part (path) and make a readable ship description like
Code:
if( ship == "x_wing_swm" ) { ship = "X-Wing" } else if //etc List.AddTail( ship_list, ship );
.

Due to the very few ships this won't increase the required calculations for the ScoreScreen too much.

2nd (very minor thing)
I would begin to choose more serious terms like Imperial for Imps, Imperator Palpatine for Palapin (where do you get this spelling from?), Anakin Skywalker for Anakin (how can Darth Vader and Anakin flying at the same time? ;) ) and so on.


~Buda5 Designer & Scripter
buda5.firstones.com


~Buda5 Designer & Scripter
buda5.firstones.com

Please Log in or Create an account to join the conversation.

More
20 years 4 months ago #10688 by MajorTom
Sorry, I've been chasing the bug in the scores and didn't send the script off- I'll send it later on tonight, early tomorrow.

Yahoo, Finally found the bug!
The reason is in the original bot creation code.
Whenever bots are killed the replacements get an Object.AddIntProperty for points, frags and died counts where the value of the same property on the old dead bot is transfered to the new one. Thats how the server keeps track of the scores.

The problem is/was, the first bots that were created didn't get the AddIntProperty, so the scores the first bot achieved were never recorded when the scores functions set them (you can't set a property unless you've added it previously).
As a result the scores were never recorded untill the first bot was replaced

Ok, Ok ;) I'll change "Palapin"
No one believes me that Palapin is Palpatine's little brother (born by one of the Imperators concubines). His identy was kept so perfectly secret, that apparently I'm the only one who knew about it :D

I couldn't think of any names of the well known charachters on the Imperial side, so I made up some. What names could we use?

"Imps" has been changed to Imperials now.



Showing the ship type is open for discussion:

imo we shouldn't add the ship type to the Score screen because that might cause some unnecessary discussions about who is "allowed" to fly which ship type on which team.
As it stands, we can't (even if we wanted to) code anything that would restrict ship type selection to certain factions, because the faction is the last thing the player selects before he joins a game and has already selected a ship to play with.

To provide a faction dependent ship selection, we would have to re-code the iNetwork Gui to allow team selection there, and consequently the player enter/load functions of all scripts! Thats a good bit of work.
That would also make the Teamselect screen obsolete. That screen however, provides some basic information about the game objectives.
Without it, we would have to add the game information to the iNetwork Gui, which is more work too.
Additionally, faction dependent ship selection might make it impossible (or very complicated) to join a game from the lobby (using the join game button in gamespy)

Is there a good reason we should do the work?




Iwar2 Multiplayer Fan Site

Please Log in or Create an account to join the conversation.