Metamod: Show Player Info By Looking At Them

24

Comments

  • f3Rl3SSf3Rl3SS Join Date: 2003-01-28 Member: 12878Members
    <!--QuoteBegin--voogru+Feb 15 2003, 02:48 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Feb 15 2003, 02:48 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--f3@Rl3SS+Feb 14 2003, 09:39 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (f3@Rl3SS @ Feb 14 2003, 09:39 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> <!--QuoteBegin--cracker jackmac+Feb 15 2003, 12:58 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cracker jackmac @ Feb 15 2003, 12:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> problem is...how do i get the source over? <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->


    i'm still wokring on it.... <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    1.) Just copy the hole source to your "clipboard"
    2.) open the ssh connection and login
    3.) touch "playerinfo.sma"
    4.) "vi <i>or</i> nano <i>or</i> pico <i>or</i> joe playerinfo.sma"
    5.) save the file
    6.) compile it

    quite easy, no file transfer needed. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    The plugin is metamod, C++

    If cracker jackmac cant compile it on linux for me, ill have to ask scott (he has compiled a few of my plugins before)


    cracker jackmac, you had a .so, it didnt work with you but you could give it out and see if it works with other linux distros. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    well ... doesn't matter if it's metamod or amx ... the point was, he didn't know how to upload the source. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • f3Rl3SSf3Rl3SS Join Date: 2003-01-28 Member: 12878Members
    <!--emo&:(--><img src='http://www.unknownworlds.com/forums/html/emoticons/sad.gif' border='0' style='vertical-align:middle' alt='sad.gif'><!--endemo-->
    The plugin doesn't work on my gentoo machine ...
  • backburnbackburn Join Date: 2003-01-05 Member: 11855Members
    Weee....

    L 02/14/2003 - 22:36:06: [META] ERROR: dll: Failed query plugin '<playerinfo_mm.so>'; Couldn't open file '/home/bjank/hlds_l/ns/addons/voogru/playerinfo_mm.so': /home/bjank/hlds_l/ns/addons/voogru/playerinfo_mm.so: undefined symbol: edict__11CBaseEntity

    on my RH 7.3 sys:

    [bjank@enigma addons]$ uname -a
    Linux enigma.nexgenis.com 2.4.18-10 #1 Wed Aug 7 11:41:24 EDT 2002 i686 unknown
    [bjank@enigma addons]$


    Doesnt work <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->

    My offer still stands voogru....
    Free shell for compiling linux ns related code...
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    <!--QuoteBegin--f3@Rl3SS+Feb 14 2003, 11:08 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (f3@Rl3SS @ Feb 14 2003, 11:08 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> well ... doesn't matter if it's metamod or amx ... the point was, he didn't know how to upload the source. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    i know what i'm doing.....i know your suggestion but its fubar.

    voog has alot of stuff modified......and i'm not going to copy and paste every file into an SSH window....

    ggrrrr......<resists the urge to flame>



    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
    My offer still stands voogru....
    Free shell for compiling linux ns related code...<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    i love it...problem is....its RH....
  • backburnbackburn Join Date: 2003-01-05 Member: 11855Members
    thats not a problem, thats a fact. Most linux boxes hosting NS servers run redhat. While i do run freebsd servers as well, my texas colo facility only offers linux installs for dedicated servers.

    I can give you access to a freebsd box as well if youd like. That still doesnt change the fact that most people use RH. God i hate it just as much as the next guy.

    And noo you wont have to cut and paste thru ssh, just use zmodem or FTP using same login....

    All of my boxes have the latest kernal and latest c librarys... Ill be putting out a few mods myself in the next few weeks.
  • CoREJayFiveCoREJayFive Join Date: 2003-02-12 Member: 13479Members, Constellation
    Didn't report any errors on mine, but it didn't work.

    -JayFive
  • Tcquest78Tcquest78 Join Date: 2002-12-17 Member: 10949Members
    Why not just post a link to the source so this gets done faster? Resource Editing stopped becoming magic when the source to SpiderMonkey was released...
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    which i did because i realized i was legally required to do so.
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    i won't release the source because its voogru's source and i told him i wouldn't...until he tells me other wise, i'm keeping my promise.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    edited February 2003
    voogru made a request of me a while back to not ripoff his ideas and release plugins that use them. And for the most part I find that acceptable.

    But I don't think I'm alone when I say that this release was done in such a horrible fashion that it demands a better package.

    so here's my version of the plugin, linux & windows, source included, no banners

    voogru's is probably more refined, but all in all it's the same thing

    when he steps up to the plate and provides a smoother release of his plugin I will most likely remove this download

    [EDIT]voogru has informed me that he now has a linux version in his original zip file, so my attachment is being removed[/EDIT]
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited February 2003
    I would release my source glady, If all other metamod plugins out there were open source as well.

    I figured, Gee... If they get away with it, Why should I bother to give out my source?


    Not to brag or anything, but my method to get the players resources is much cleaner, Its one line, not a whole search function and all that.

    Anyways, I just slapped it together since some people wanted it, Ill have scott compile it for linux later today (and cracker you can go ahead and send the source to scottl on the IRC channel.)
  • f3Rl3SSf3Rl3SS Join Date: 2003-01-28 Member: 12878Members
    edited February 2003
    ok ... please no opensource flamewar here & stick to the topic a lil.

    @cracker jackmac:
    Oh ... ok ... when there's more than just one or 2 files to be edited, you're surely right, my c&p idea is fubar. <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited February 2003
    <!--QuoteBegin--Tcquest78+Feb 15 2003, 01:48 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (Tcquest78 @ Feb 15 2003, 01:48 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Why not just post a link to the source so this gets done faster? Resource Editing stopped becoming magic when the source to SpiderMonkey was released... <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Its not magic, But the code can be used for almost anything and not just player resources.

    [WHO]Them's code will probally only work for the alien resources.


    but mine will work on things from player resources in NS, to the money count in CS, to even the amount of ammo and grenades. It would work with any mod as long as you just get the offset. Which is a bit tricky but it hardly ever changes (Only when the mod is changed)


    Thats why I dont give it out for nothing.

    Now, if you want a open source version, Ill just take out the resources thing
  • playerhaterplayerhater Join Date: 2002-11-13 Member: 8405Members
    edited February 2003
    sounds like good stuff, i will load them up and give them a try.

    As far as zmodem and all that, doesnt anyone use "securecopy (scp)" thats built in with SSH to transfer files?

    Oh wait, NM. Thats just for file transfer between shells. hehehe, my bad.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    <!--QuoteBegin--voogru+Feb 15 2003, 04:57 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (voogru @ Feb 15 2003, 04:57 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Not to brag or anything, but my method to get the players resources is much cleaner, Its one line, not a whole search function and all that. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    that isn't anything besides bragging, and last I checked, your method only worked for windows since the offsets are different for windows and linux.

    your one line may look good when it works, but the hard coded offset is THE most breakable way to do this possible. I figure that the server admins can afford to waste the extra 0.00001 seconds to run the search given that they don't edit it 50,000 times a second or anything
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited February 2003
    <!--QuoteBegin--[WHO]Them+Feb 15 2003, 01:27 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> ([WHO]Them @ Feb 15 2003, 01:27 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> and last I checked, your method only worked for windows since the offsets are different for windows and linux.
    <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    How do you know my method to try it?

    Anyways, Ill have a linux compile soon and we will see if the resources show, or not.

    Maybe your right, But Id like to see for myself first <!--emo&;)--><img src='http://www.unknownworlds.com/forums/html/emoticons/wink.gif' border='0' style='vertical-align:middle' alt='wink.gif'><!--endemo-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    I think you forget the discussion we had about this a month back, but we'll just wait and see
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    upgraded to glibc-3.2 (not3.2.1) now i get

    L 02/15/2003 - 13:39:05: [META] ERROR: dll: Failed query plugin '<plugin.so>'; Couldn't open file '/home/halflife/hlds_l/ns/addons/voogru/plugin.so': /home/halflife/hlds_l/ns/addons/voogru/plugin.so: undefined symbol: __gxx_personality_v0
    L 02/15/2003 - 13:39:05: [META] ERROR: dll: Skipping plugin '<plugin.so>'; couldn't query


    when i try to load the plugin.. different errors but still doesn't work.

    <!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->gcc -shared -march=i586 -I../common/ -I../engine/ -I../dlls -I../metamod/ -o plugin.so plugin_api.cpp plugin_util.cpp
    In file included from plugin_api.cpp:6:
    plugin.h:25:81: warning: no newline at end of file
    plugin_api.cpp: In function `void PlayerPostThink(edict_t*)':
    plugin_api.cpp:41: warning: initialization to `int' from `float'
    plugin_api.cpp:41: warning: argument to `int' from `float'
    In file included from plugin_util.cpp:5:
    plugin.h:25:81: warning: no newline at end of file
    plugin_util.cpp:194:2: warning: no newline at end of file
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    none of those gcc warnings should matter at all,

    no newline at end of file is one that still perplexes me as to why it's a warning
    and float to int warnings just say that it's losing precision, but I know for a fact that resource editing doesnt care about the lost decimal places
  • cracker_jackmaccracker_jackmac Join Date: 2002-11-04 Member: 6891Members, Constellation, Reinforced - Shadow
    i know that. I'm just saying i think you might be right about the "windows only" thing.
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited February 2003
    Well it should compile in linux and work, but the part which Them is saying will only work in windows is the resources.

    Now if it doesnt work, it will either crash when you look at a player or show 0/0

    It wouldnt bomb out like that.
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    i agree, the plugin should at least start and run in linux, but if I'm correct it's going to show some value for resources that isn't the resources (meaning it could be armor or garbage for all we know)
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    <!--QuoteBegin--playerhater+Feb 15 2003, 10:39 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (playerhater @ Feb 15 2003, 10:39 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->As far as zmodem and all that, doesnt anyone use "securecopy (scp)" thats built in with SSH to transfer files?

    Oh wait, NM.  Thats just for file transfer between shells.  hehehe, my bad.<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    No, you're spot on. SCP isn't *nix-to-*nix only. If SFTP isn't available, SCP works almost as well; just has the disadvantage if being "noninteractive."

    You can go with a command-line version from the developer of PuTTY (excellent, free windows SSH client)

    PSCP: <a href='http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html' target='_blank'>http://www.chiark.greenend.org.uk/~sgtatha...y/download.html</a>

    Or there's a GUI'd client from another developer that feels just like a regular GUI'd FTP client:

    WinSCP: <a href='http://winscp.vse.cz/eng/' target='_blank'>http://winscp.vse.cz/eng/</a>
  • verboseverbose Join Date: 2002-11-25 Member: 9968Members, Constellation
    <!--QuoteBegin--cracker jackmac+Feb 15 2003, 01:38 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (cracker jackmac @ Feb 15 2003, 01:38 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->L 02/15/2003 - 13:39:05: [META] ERROR: dll: Failed query plugin '<plugin.so>'; Couldn't open file '/home/halflife/hlds_l/ns/addons/voogru/plugin.so': /home/halflife/hlds_l/ns/addons/voogru/plugin.so: undefined symbol: __gxx_personality_v0
    L 02/15/2003 - 13:39:05: [META] ERROR: dll: Skipping plugin '<plugin.so>'; couldn't query<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    *edit* Okay, I think I see the problem now. See below.

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->gcc -shared -march=i586 -I../common/ -I../engine/ -I../dlls -I../metamod/ -o plugin.so plugin_api.cpp plugin_util.cpp<!--c2--></td></tr></table><span class='postcolor'><!--ec2--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Toss '-fPIC' in there. I also recommend using '-Wall' for a little paranoia to aid debugging. If you get complaints about pragmas in metamod/SDK code, add '-Wno-unknown-pragmas' to silence them; they're okay.

    <!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin--><!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->In file included from plugin_api.cpp:6:
    plugin.h:25:81: warning: no newline at end of file
    plugin_api.cpp: In function `void PlayerPostThink(edict_t*)':
    plugin_api.cpp:41: warning: initialization to `int' from `float'
    plugin_api.cpp:41: warning: argument to `int' from `float'
    In file included from plugin_util.cpp:5:
    plugin.h:25:81: warning: no newline at end of file
    plugin_util.cpp:194:2: warning: no newline at end of file
    <!--c2--></td></tr></table><span class='postcolor'><!--ec2--><!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

    Hey Voogru, I haven't seen the source, so excuse my assumption if it's off base: Explicitly cast your floats to integers to silence the warnings? (int) float_var
  • scottlscottl Join Date: 2002-12-20 Member: 11232Members
    Ok. I compiled it and tested it out. Them, Voog, you were right. When you look @ a alien it shows up 0/0 for recources. Other than that its fine: Heres the plugin
  • [WHO]Them[WHO]Them You can call me Dave Join Date: 2002-12-11 Member: 10593Members, Constellation
    /me does a little victory dance or correctness
  • JoeBlowJoeBlow Join Date: 2003-01-28 Member: 12899Members
    So is it just impossible to get the alien res to show up, or its something that just needs a little more work? It would be really cool to have alien res show up, but its still a nice plugin either way.
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    <!--QuoteBegin--JoeBlow+Feb 17 2003, 05:53 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (JoeBlow @ Feb 17 2003, 05:53 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> So is it just impossible to get the alien res to show up, or its something that just needs a little more work? It would be really cool to have alien res show up, but its still a nice plugin either way. <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    It works for linux and windows now 100%
  • SpiritMasterSpiritMaster Join Date: 2002-11-07 Member: 7580Members, Reinforced - Shadow
    Please add a Linux Version, as the version I got, and am hosting on NS Archive is for Windows only
  • voogruvoogru Naturally Modified (ex. NS programmer) Join Date: 2002-10-31 Member: 1827Members, Retired Developer, NS1 Playtester, Contributor, Constellation
    edited February 2003
    <!--QuoteBegin--SpiritMaster+Feb 18 2003, 12:58 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (SpiritMaster @ Feb 18 2003, 12:58 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Please add a Linux Version, as the version I got, and am hosting on NS Archive is for Windows only <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    Redownload the zip file, It has a linux version
Sign In or Register to comment.