PDA

View Full Version : [News] IpToCountry incorrect flags problem


AnthraX
18th January, 2007, 03:14 PM
As most of you know, the utgl server is hosting Rush's IpToCountry php scripts. These scripts required access to the unrealadmin database server but after some problems with the server, we've replaced rush's original scripts by newer versions that worked without any database access. Yesterday, it came to my attention that the v1.2 scripts at utgl often returned incorrect country data. This was caused by a typo in the updated scripts and it has been fixed now.

~Ganesh~
18th January, 2007, 04:02 PM
good stuff, so no need to downgrade anymore :thumbup:

Rush
18th January, 2007, 04:10 PM
So it wasn't my 'evil plot' to return Polish country codes in some weird cases ? :) That's a relief ... And you reminded me AnthraX that I have to take take care of the stuff I made ... now it looks like I have given you an additional work, so sorry about that ..

AnthraX
18th January, 2007, 04:32 PM
So it wasn't my 'evil plot' to return Polish country codes in some weird cases ? :) That's a relief ... And you reminded me AnthraX that I have to take take care of the stuff I made ... now it looks like I have given you an additional work, so sorry about that ..

ah, that's no problem. I'm using SmartCTF 4D myself now

|CRAZY|Sniper.DK
19th January, 2007, 04:19 PM
i run a sniper server .. well a freestyle server but with a fast rifle ...

anyway we only have DM and TDM , and use AMLPhud&sb
i use that scoreboard so when you killed 10 and die 10 times your score is 0 .

but i would like all players to see the IPtoContry , but its not supported in AMLPhud&SB what can i do ???

is there another scoreboard that support it ? with frag - kills = score ?

Azura
19th January, 2007, 04:30 PM
but i would like all players to see the IPtoContry , but its not supported in AMLPhud&SB what can i do ???

Where can this mod be downloaded ?

Taragon
19th January, 2007, 05:07 PM
Where can this mod be downloaded ?
www.amlp.info (at their forums)
not really sure if the source is public though

CPanoplyd
19th January, 2007, 05:27 PM
The HASM is protected and I've tried to contace the Author a few times for some of his work and I've never gotten a reply so I gave up.

It wouldn't be hard to rewrite a new HUD and incorporate the IPtoCountry code. Of course you would have to get with Rush to see if you can include the IPtoCountry in the HUD.

|CRAZY|Sniper.DK
19th January, 2007, 05:34 PM
okay ? . strange amlp dont want the flags ..

or else we need a brand new scoreboard ?!?
that we snipers / campers can enjoy :-)

im sure its gonna be an instant hit !

AnthraX
19th January, 2007, 05:35 PM
why on earth would you obfuscate a scoreboard/hud mod...

|CRAZY|Sniper.DK
19th January, 2007, 05:38 PM
i just want a scoreboard that makes : frags - kills = score
and Countryflags on every players when you hit f1 .
or at the end of a game

CPanoplyd
19th January, 2007, 06:15 PM
why on earth would you obfuscate a scoreboard/hud mod...

No clue...I wanted to see if it would help me figure out how to do replication since I understand how the scoreboard works, went to look and it says something like, this cannot be modified without permission [AMLP]SerialLooser. Then decompiled it has the obfuscated code that is all but unreadable. Of course then emails, PMs, and Clan contacts couldn't get me in touch with the author, that was about a year or so ago....and I still don't understand replication...ROFL!

Rush
19th January, 2007, 06:19 PM
It's quite easy to expand a scoreboard to draw country flags, provided that you have the source ... the worst thing is a scoreboard layout.
Here's a sample MODOSUtils upgraded to support IpToCountry in TDM.
http://eros.vlo.gda.pl/~rush/MODOSUtilsV26pre1.u
It is a small demo I made for sphx to guide him in upgrading all the modes in MODOSUtils - AFAIK, he hasn't finished yet. This sample looks terribly bad and doesn't support ShowBonusInfo 0 .. but if compared to original MODOSUtils, one can figure out the exact things that need to be changed .. so feel free to export the source. :)

PS. V26 because V30 doesn't bring ANYTHING, Robus added to V30 only some some broken instagib accuracy code that works only with one version of UTPure ... so for me ModosUtils ended at V25. Don't use V30.
PS2. In IpToCountry 1.2 I added some better, event-oriented way to pass the country info to other actors, using this way it is even easier to use IpToCountry, it needs to be tested though. For the current implementation TNSe scolded me badly, and I unfortunately have to agree with him.

iDeFiX
19th January, 2007, 06:55 PM
This project is also related:
http://i14.tinypic.com/40etjd3.jpg

Country flags are on the todo list.

Rush
19th January, 2007, 07:37 PM
Great! You can also add the accuracy info, AFAIK you can get the precise accuracy from the UTStats actor.
Also the readability(is there such a word?) could be improved by changing the following short codes:
DEA -> DTH
SUI -> SCI(?? though I'm not sure for this one)
DOU -> DBL
MUL -> MLT
Also I think you should also consider showing only the currently relevant stuff, so I think it would be better to not display double kills if one doesn't have any.
Just my three cents ...

and speaking of scoreboard layouts, here's one I made some time ago
http://lux.one.pl/~rush/ut/soccer1.png
it's based on EUT - the working mod can be found here -> http://rushbase.net/ut/SoccerTournament_Raw.zip

AnthraX
19th January, 2007, 07:56 PM
I was working on a scoreboard mod myself a long time ago. It dynamically linked itself to UTStats for weapon info... You can find some screenies here: http://utgl.unrealadmin.org/UTS/

The original purpose of the UTSAccu package was to create a single package that handles weapon info and that could be used by several mods without causing any extra overhead. I gave up this project because I absolutely suck at graphical designing with unrealscript...

If anyone is interested in adding the UTStats weapon info to his own scoreboard then feel free to PM me, I can give you the entire code of that scoreboard mod.

|CRAZY|Sniper.DK
20th January, 2007, 12:47 AM
cool it sounds like you all already wanted more mods with IPtoCountry in it . or addon it :-)

cant wait to see what happens :-) :-) :-)

maybe a new hardcore multi-scoreboard for all gamemods ?

Rush
20th January, 2007, 01:05 AM
maybe a new hardcore multi-scoreboard for all gamemods ?
I'd like to see it either but who has the time for it ? :F There is certeinly lack of open-minded developers ...
Personally I think that such scoreboard should forge the best things that SmartCTF has and best things that EUT scoreboard has. It should also support external addons like IpToCountry and UTSAccu(like AnthraX showed).
Maybe if we start a joint project, with a public source code repository than maybeee it will succeed. I myself am willing to commit code ... what do you think AnthraX ? Maybe Cratos will also join forces ? How about you iDeFiX ? Matthew ? Who else is coding here ? :D

CPanoplyd
20th January, 2007, 02:17 AM
I'd be willing to play around with it. I'm a coding n00b compared to you and the others listed....but hey, you only learn and get better by doing.


Does the scoreboard in that TDM screenshot support 4 teams? As Sniper/Camper we somtimes play 3 and 4 team matches and it would be a requirement for us to have such support.

iDeFiX
20th January, 2007, 07:45 PM
Ip2Country and accuracy info were already added, as it was an old screenie ;]
And it show the best 'sprees and kills', not all of them.

At the moment, it supports 2 teams.

If I can contribute to such project, I'll do.

sphx
21st January, 2007, 11:19 AM
It's quite easy to expand a scoreboard to draw country flags, provided that you have the source ... the worst thing is a scoreboard layout.
Here's a sample MODOSUtils upgraded to support IpToCountry in TDM.
http://eros.vlo.gda.pl/~rush/MODOSUtilsV26pre1.u
It is a small demo I made for sphx to guide him in upgrading all the modes in MODOSUtils - AFAIK, he hasn't finished yet. This sample looks terribly bad and doesn't support ShowBonusInfo 0 .. but if compared to original MODOSUtils, one can figure out the exact things that need to be changed .. so feel free to export the source. :)

PS. V26 because V30 doesn't bring ANYTHING, Robus added to V30 only some some broken instagib accuracy code that works only with one version of UTPure ... so for me ModosUtils ended at V25. Don't use V30.
PS2. In IpToCountry 1.2 I added some better, event-oriented way to pass the country info to other actors, using this way it is even easier to use IpToCountry, it needs to be tested though. For the current implementation TNSe scolded me badly, and I unfortunately have to agree with him.


;) yeah m8, sorry about not releasing it in the end... I got stuck with wrong flags displayed (hmm so it's fixed now?) & .pl flags all arround :P

I'm running the latest version I made on 4 servers and runs smooth.

ok now when it's fixed, I'll release it today!

sphx
21st January, 2007, 11:24 AM
I'd like to see it either but who has the time for it ? :F There is certeinly lack of open-minded developers ...
Personally I think that such scoreboard should forge the best things that SmartCTF has and best things that EUT scoreboard has. It should also support external addons like IpToCountry and UTSAccu(like AnthraX showed).
Maybe if we start a joint project, with a public source code repository than maybeee it will succeed. I myself am willing to commit code ... what do you think AnthraX ? Maybe Cratos will also join forces ? How about you iDeFiX ? Matthew ? Who else is coding here ? :D

I'll help any way I can so just count me in !

sphx
21st January, 2007, 11:32 AM
ok this is spam :P but never mind, here's a current version:

https://adria.fesb.hr/~aaljinov/ut/modosutilsv26pre5.rar

|CRAZY|Sniper.DK
21st January, 2007, 12:26 PM
cool guys , thanks 4 working on this , i know many will give an arm for it

|CRAZY|Sniper.DK
27th January, 2007, 06:06 PM
dont be quite ..

or is no news good news ?

|CRAZY|Sniper.DK
12th February, 2007, 07:03 PM
is this moved to another topic ?