Forum posts

Posted 5 years ago2019-02-09 00:35:55 UTC
in Can´t find "hud.h", but It´s in there!! Post #341993
Have you made any other modifications?
Does including other header files in the same directory work?
Posted 5 years ago2019-02-03 08:20:55 UTC
in houndeyes killing each other Post #341941
Ah, that'd be it - I use a value from CMD_ARGV which will get tidied up.
I guess I can cache the strings to stop running out of memory.
Posted 5 years ago2019-02-03 08:18:51 UTC
in mod icon Post #341940
Maybe, though I didn't think all the different game icons were embedded.
I think it's Steam magic but I don't know.
Posted 5 years ago2019-02-02 23:07:33 UTC
in houndeyes killing each other Post #341934
I'm not setting it at all - something in CBaseEntity seems to do that and it looks okay when it is spawned, and I think I tried setting it with MAKE_STRING but that didn't work either.

I see that some entities have it set manually with MAKE_STRING though.
Posted 5 years ago2019-02-02 23:07:24 UTC
in mod icon Post #341933
Alright thank you both - I was convinced it had to be the engine because I couldn't believe that both paint.net and Windows would both be wrong.
But I don't get how games through Steam don't have this problem.
Posted 5 years ago2019-02-02 06:11:07 UTC
in houndeyes killing each other Post #341920
Okay this is a bit of strange one. I'm programmatically creating monster_houndeye entities with CBaseEntity::Create
After they are created I ALERT their pev->classname values and can see monster_houndeye
In the houndeye's SonicAttack method, all entities in a sphere around the houndeye are looped over. In this loop the pev->classname of neighbouring houndeyes is garbage so the houndeyes end up killing each other and themselves.

Somewhere the pev->classname is getting messed up. Any ideas?
If the houndeye is just in the map it doesn't seem to have this problem.
Posted 5 years ago2019-02-02 04:04:39 UTC
in Post your screenshots! WIP thread Post #341919
More work on the next version of Sandpit:
Sprite MenuSprite Menu
In going through and finding sprites to put on it I found at least two sprites that shipped with Half-Life that had visible green backgrounds (I guess they weren't compiled right or something).
Posted 5 years ago2019-02-02 03:56:16 UTC
in mod icon Post #341918
You can grab it out of the .zip at (https://www.moddb.com/mods/sandpit/downloads/sandpit-v401).
I've since tried playing around with it locally but still get the same result.
I dug through my client.dll and I suspect that steam_api.dll may be the culprit. It's there but possibly DllMain returns false for pirated copies which causes LoadLibrary to fail.
Posted 5 years ago2019-02-01 23:21:30 UTC
in mod icon Post #341915
I think the .ico is only used for desktop shortcuts.

Re the Valve Developer wiki - I think I updated that page (probably a decade or so ago) and it worked back then but Steam has received more than a few updates since then.
I've been trying to copy what Half-Life itself has but I suspect games/mods have an icon on the Steam backend that gets used for the Steam My Games list.
I tried updating paint.net but had no luck, and as far as I can see my .tga has the same settings as Half-Life's icons, and the Windows preview shows the correct orientation.
Just checked and it looks like static linking the Visual C++ runtime already happens by default for client.dll (or at least it does in my mod that I updated from the Visual C++ 6 project files).
Posted 5 years ago2019-01-27 23:30:16 UTC
in REV - Resident Evil Valiant Post #341868
Calling gEngfuncs.pTriAPI->FogParams (with the first parameter between 0.0 and 1.0 from memory) works for me.
I thought a big part of Half-Life was the modding - Natural Selection 2 tried to follow that path with their SDK but I don't know, I guess the modding scene has changed since 1998.
Posted 5 years ago2019-01-25 21:36:46 UTC
in Waypoints for this maps [Firearms] Post #341839
Which bot are you using? HPB Bot has some console commands like waypoint add and waypoint save
Posted 5 years ago2019-01-25 21:35:04 UTC
in REV - Resident Evil Valiant Post #341838
yep i know the fog is broken, thats why im finding someone payd to fix it along other issues
Fog is easy to fix - if you look at the latest SDK code there's an extra fog function in the TriangleAPI that needs to be called.
Posted 5 years ago2019-01-12 10:52:21 UTC
in The Ballet of the Bots Post #341625
The can't find monster looks like a missing entity: https://github.com/ValveSoftware/halflife/blob/master/dlls/scripted.cpp#L486
You'll have to do some searching to figure out what the other one is.
Posted 5 years ago2019-01-11 21:14:40 UTC
in The Hype-o-matic (Upcoming games) Post #341621
Still pretty excited for Black Mesa which shouldn't be far away now hopefully.

Other than that not much - ACE Team (the makers of Zeno Clash) say they'll probably be announcing three projects this year so I'm interested to see what they will be.
Posted 5 years ago2019-01-11 21:10:08 UTC
in The Ballet of the Bots Post #341620
Probably wouldn't be too hard to fix whatever is causing the issues - looks like missing animations or something like that.
Posted 5 years ago2019-01-11 06:13:49 UTC
in The Ballet of the Bots Post #341616
Not sure what's outputting them but maybe they're unsuppressible errors? Maybe the engine will always warn you regardless of what developer is set to.
It's a shame that dependencies are so hard.

I guess statically linking to the Visual C++ runtime is okay solution for most use cases? I assume that's what this error is most of the time.
Posted 5 years ago2019-01-10 04:54:51 UTC
in The Ballet of the Bots Post #341609
What is the message?
Posted 5 years ago2019-01-09 04:37:26 UTC
in The Ballet of the Bots Post #341597
All the TE_ effects are hard-coded in the engine.
Posted 5 years ago2019-01-08 04:41:05 UTC
in playing with the console command list Post #341585
Ah thanks - I thought about Cmd_Argc and Cmd_Argv after I posted but I wasn't sure if they'd have the right data in them (I guess they have to).
And yeah I was thinking store the original and only pass off to it if some condition was met, otherwise just print an error or something.
Posted 5 years ago2019-01-08 04:39:22 UTC
in The Ballet of the Bots Post #341584
const.h says TE_TELEPORT only takes three coord arguments - maybe use another SVC message type that has a width parameter.
Posted 5 years ago2019-01-07 21:42:17 UTC
in playing with the console command list Post #341578
cl_enginefunc_t provides GetFirstCmdFunctionHandle, GetNextCmdFunctionHandle and GetCmdFunctionName for playing with the engine's list of console commands, though it looks like the definitions aren't quite right - they should probably be this (some documentation from prsearle):
typedef void (*xcommand_t) (void);    // Pointer to console command handler

typedef struct cmd_function_s {
    struct cmd_function_s *next;    // Next console command structure
    const char *name;                // Console command as typed at console (e.g. "stopsound")
    xcommand_t  function;            // Pointer to function called when command is entered
    const char *description;        // Command description ???
    qboolean    pure;                // ???
} cmd_function_t;

...

typedef cmd_function_t*                (*pfnEngSrc_GetFirstCmdFunctionHandle_t)();
typedef cmd_function_t*                (*pfnEngSrc_GetNextCmdFunctionHandle_t)(cmd_function_t* cmdhandle);
typedef const char *                (*pfnEngSrc_GetCmdFunctionName_t)(cmd_function_t* cmdhandle);
So it looks like it's possible to modify or remove entries in the engine's command list (though maybe we're not meant to given that the definitions in the SDK aren't usable). My question is how modifying the function attribute of cmd_function_t would work - it doesn't seem to take any arguments and from a quick look at Quake's code it looks like the passed arguments are stored in a global char* pointer which the client code probably doesn't have access to. Seems like there isn't a way to usefully override a console command based on the arguments that get passed?

edit: is multi-line code formatting possible?
Posted 5 years ago2019-01-04 23:38:43 UTC
in The Ballet of the Bots Post #341546
Seems like an okay place for it but if it's not working probably add some logging to see what's going on.
Posted 5 years ago2019-01-04 23:34:08 UTC
in custom blood colours Post #341545
Ah yep, all the things in efx_api_t that take a colour number too, and all the Quake-style particles I guess.
Thanks.
Posted 5 years ago2019-01-04 07:08:40 UTC
in custom blood colours Post #341540
So it looks like blood colours actually come from palette.lmp and BLOOD_COLOR_RED/BLOOD_COLOR_YELLOW/BLOOD_COLOR_GREEN are palette indices?
Has anyone played around with palette.lmp? Is it used for anything more than blood colour?
By the time I'd got most of the way through the article I'd completely forgotten about vis.
Anyway, I remember reading https://github.com/x6herbius/afterburner-engine/wiki/Nightfire-BSP-Format which seems to be a moderately accessible document which describes the vis lump among other things (it's for 007 Nightfire but it's close enough probably).
Posted 5 years ago2019-01-03 03:42:05 UTC
in The Ballet of the Bots Post #341538
As for the bots, I'd go with a personality approach (something like int m_iPersonality, or even better, an enum) and each bot gets a random personality at spawn. And then depending on their personality, they can fire slower, faster, and even prefer weapons.
Agree.
Posted 5 years ago2019-01-03 03:39:46 UTC
in Half Life 2 Style Weapon Sway code request Post #341537
Does Deathmatch Classic have it? Maybe look in https://github.com/ValveSoftware/halflife/tree/master/dmc/cl_dll for references to bob or sway to see how it's done.
Posted 5 years ago2018-12-30 04:45:00 UTC
in getting number of sprite frames on server Post #341523
Alright I tried it again and now it's returning the right number - not sure what was happening before - might have passed the wrong pev somewhere.
MODEL_FRAMES( pForward->pev->modelindex ) works (I assume modelindex gets populated by the engine).
Posted 5 years ago2018-12-30 04:44:16 UTC
in when to EXPORT an entity method Post #341522
Nice thanks.
Posted 5 years ago2018-12-29 06:45:38 UTC
in when to EXPORT an entity method Post #341518
I've never quite understood it but by the looks of it you need to EXPORT a method if you pass it to SetThink/SetTouch/SetUse/SetBlocked?
It seems like things compile without the EXPORT but I guess save-games will screw up without it: it looks like Set* set m_pfn* which get serialised in the saverestore stuff.
Posted 5 years ago2018-12-29 01:53:25 UTC
in getting number of sprite frames on server Post #341515
It seems like MODEL_FRAMES in the method that should return that information (based on its usage in the server code) but I've used it on some sprites and it returns some massive number (>1 billion I think).
Is there a way to do this? Without opening the sprite and parsing it myself?
Posted 5 years ago2018-12-29 01:51:14 UTC
in Sven Co-op forums shutting down Post #341514
Four year old version of vBulletin probably isn't great...

What subforums have the good information? I never really used the Sven Coop forums much.
Posted 5 years ago2018-12-27 23:05:51 UTC
in mdl flags Post #341497
So this was discussed a little while ago but the thread has since been closed.
Anyway, I got the effects using $flags working in empty models. The effects are pretty basic - just streams of little coloured circles, but it works.

Source for env_projectile entity to test it: https://github.com/tschumann/basis/blob/master/dlls/mod/modeffects.cpp
Source for models with flags set: https://github.com/tschumann/basis/tree/master/modelsrc
Source for map with some entities to test the models: https://github.com/tschumann/basis/blob/master/mapsrc/env_projectile.map
Posted 5 years ago2018-12-26 04:32:14 UTC
in The Ballet of the Bots Post #341488
Seems like expected behaviour - the bot AI is just a set of rules the bots follow - the same inputs will probably produce the same outputs so if all the bots see the same enemy and have the same weapon available, they will target the same enemy and use the best weapon based on a set of static rules.
Posted 5 years ago2018-12-09 03:53:40 UTC
in Sandpit v4 released Post #341407
I've released a major update to Sandpit: https://www.moddb.com/mods/sandpit/downloads/sandpit-v401
Top of the changlelog is that it's on the latest Half-Life SDK now but under the hood the Model Menu now shows items from Opposing Force if you've got it mounted and the Pose Menu now gives you a lot more flexibility (the body changer now works for all bodygroups).

Sandpit is now also based on Basis (something like Spirit of Half-Life that I've been doing on the side).
New pose menuNew pose menu
You can follow progress at https://www.moddb.com/mods/sandpit and give it a vote for Mod DB's Mod of the Year if you're feeling generous too.
Posted 5 years ago2018-12-07 21:54:04 UTC
in Post your screenshots! WIP thread Post #341405
tschumann, is that for adding entities on a map? I did something similar a few years ago. Even made custom K/V fields and ability to work together online. Did you make a FGD parser or it's just hard-coded?
Yeah it's for spawning and posing entities.Nothing fancy like key/value editing (yet anyway) and it is hard-coded.
Posted 5 years ago2018-12-01 23:46:07 UTC
in Peer Review Post #341373
Nice work.

I watched the video wondering which level it was (though I last played Decay probably more than 10 years ago) but I see on Mod DB that you've chosen to make some changes.
Yeah putting bot-specific logic in the weapon class is probably not the best approach.
I think botman's bots have some edge cases in the shooting code though - there are no checks on the minimum amount of ammo required to shoot.
Posted 5 years ago2018-12-01 00:38:26 UTC
in Got better Post #341364
Is a Garry's Mod ragdoll any different to a regular Source engine ragdoll?
Maybe try asking on the Facepunch forums anyway - probably a few more Source engine modelers there.
I guess this a MetaMod problem - what version are you using? The normal game shouldn't crash if there is a missing entity.
You should be able to stub out an entity with a plugin but I agree that ripent is the best/easiest solution.
Posted 5 years ago2018-11-24 06:31:26 UTC
in mod icon Post #341308
I've copied game.tga from Half-Life to use in my mod and in paint.net I've tried saving it with various different settings (24-bit, 32-bit, with and without RLE compression) but whatever I do, I end up with the icon rotated 180 degrees in the menu bar and task bar of Windows.
Anyone had anything similar? Or any other ideas to try?
Posted 5 years ago2018-11-24 06:28:59 UTC
in Post your screenshots! WIP thread Post #341307
Next version of Sandpit is getting close:
Monster MenuMonster Menu
Prop MenuProp Menu
Pose MenuPose Menu
Everything seems to be working; just tying up a few loose ends at this point.
Posted 5 years ago2018-11-24 06:26:29 UTC
in Visual underwater effect Post #341306
Looking at the code it might be possible to modify func_water - looks like pev->skin can be set to CONTENTS_WATER, CONTENTS_SLIME or CONTENTS_LAVA (at least as far as the .fgd is concerned) and I guess that somehow ends up in pev->watertype?
Maybe another CONTENTS_ constant will keep the fogginess but I'm guessing the engine probably only does that for CONTENTS_WATER, CONTENTS_SLIME and CONTENTS_LAVA. You can do client-side fog but I don't think it's as flexible as water textures.
Posted 5 years ago2018-11-17 07:00:58 UTC
in Weapon Strip (HUD question) Post #341260
I'm guessing it could be fixed in code - are you just making a map or making your own mod?
Posted 5 years ago2018-11-17 06:53:43 UTC
in Using black mesa or half life 2? Post #341259
If you're planning on doing any programming then Half-Life 2 is realistically the only option (I think Allied Modders might provide a Black Mesa SDK but it's more for plugins I believe), otherwise I assume both provide Hammer and relevant compile tools.
Posted 5 years ago2018-10-16 11:08:15 UTC
in rendering bounding boxes Post #341049
Ah, size must be what I want.
I'm working on the client and size doesn't seem to be in entity_state_t