PDA

View Full Version : pmtools, a new version


Pierre-Marie Baty
08-11-2004, 17:33
Hi

In my rare spare time these days I managed to improve pmtools a bit and add a couple interesting features : a fly/noclip mode, an invincibility mode (these 2 are useful for testing triggers and getting your position) and a console command to retrieve the POINT_CONTENTS at your location. It has also a teleport feature now.

Unfortunately I have no time to upload it and compile it for Linux (each time I log into the BU server it takes me aaaages to do anything - 56k sucks - and I really don't have time to waste) so if anyone wants to make a clean new release of it, here's the .cpp file.

Note to all new HLSDK hackers/coders/bot makers who don't know this plugin: try it, cause once you know it you can't live without ;)

BAStumm
08-11-2004, 22:03
compiles under linux with no changes. .so is attached. I notice that use_bsp_code is removed ??? Also, nice to see that you fixed this so it compiles for linux, ie the "can only be used from listenserver" or whatever error when attempting to use those commands.

Pierre-Marie Baty
08-11-2004, 22:31
Thanks a bunch man :) Yeah, the BSP stuff was removed... but I removed it quite some time ago already, because at that time I had a few bugs in the BSP code (like some faces being dropped from the mesh because they happened to be on the wrong "side", ie the vertices were enumerated in the reverse order); I fixed it since, so maybe I could readd that in pmtools. You want it again ? It's a matter of one hour or two.

BAStumm
08-11-2004, 22:45
tbh I didn't use the bsp code, was that listenserver only stuff? Cuz i only use pmtools from command line on linux server ;)

tbh I only really use the listend and printent stuff, but the extract deal may get used now ;)

BAStumm
08-11-2004, 23:51
Got a crash, although I've seen this in the old version too... Also teh ent I was printing is a monster_plugin ent (icky) so I think that might be related. Perhaps monsters dont have a v.euser4 ? Cuz it prints v.euser3 then crashes...


[bs@Dragon maps]$ hlcmd -g tfc printent 300

8<----SNIP----

Last 5 lines in hlds_l.log are:
----------------------------------------------------------------------
pEntity->v.euser1 = NULL
pEntity->v.euser2 = NULL
pEntity->v.euser3 = NULL
L 11/08/2004 - 12:56:29: FATAL ERROR (shutting down): Bad entity in IndexOfEdict()
FATAL ERROR (shutting down): Bad entity in IndexOfEdict()
----------------------------------------------------------------------

Pierre-Marie Baty
08-11-2004, 23:57
Ohoho

Nope, I mean yes, they have. But that must be worldspawn itself. Worldspawn is the only entity that's not bindable through INDEXENT() and its contrary.

Gotta check that, thanks once more :)

Pierre-Marie Baty
09-11-2004, 05:25
OK, new version released & packaged. Try this one. It's available from the filebase.

BAStumm
09-11-2004, 05:46
does it include a .so for linux? If not I can compile one for you...

Pierre-Marie Baty
09-11-2004, 06:11
Yep. While I was at hacking around the HPB_bot again I thought I'd take the time to do things right.

/me stares at his modem with blood in the eyes

BAStumm
09-11-2004, 06:27
you know, in the future you can feel free to hit me up for compiling linux stuff for ya's... I can't compile for windows and I've always been able to find someone nice enough to help me out so I like to return the favor... speaking of which I may have some new stuff for monster in coming days and may just need a hand in that ;)

sfx1999
10-11-2004, 05:42
What's it do?