Страницы (2): [1] 2 » Показать все 18 сообщений этой темы на одной странице |
HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- How to force a mod to use it's own player models? (https://hlfx.ru/forum/showthread.php?threadid=5669)
How to force a mod to use it's own player models?
Hello Team,
This is a general question, not much of a coding I guess...
I have made some custom models for my mod (and not just for it), I loaded the mod and in the player model selection screen I can see the models I put in my mod fodler's "models\player" folder; however I can also see the models from "valve\models\player" folder... This is undesirable as the models for my mod (and for most of the 3rd party mods like The Specialists for example, use different animations... Thus the animations for the default models are broken...
My question is is there away to restrict the mod to only load the player models from it's own directory?
E.G.: ".\modname\models\player\" folder?
Alternative "fix" would be to create versions of the default "valve" folder player models, but this works only until you download a new model for HL1... And you know something that fits in HL1, may not fit in another mod...
I think this is something to go with the parameters in the liblist.gam (however I don't have fallback dir setup for valve... so it's strange for me...)
Here's the liblist.gam file content:
code:
game "FlatLine Arena" url_info "https://flatline-arena.droppages.com/" url_dl "https://flatline-arena.droppages.com/" version "1.4.7RC1" size "" svonly "0" cldll "cl_dlls\client.dll" hlversion "1110" type "multiplayer_only" nomodels "0" mpentity "info_player_deathmatch" icon "flarena" gamedll "dlls\mp.dll"
__________________
FlatLine Arena | Tutorials
If you don't like something, MOD it!
I thinking it's impossible
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
It's impossible. The only way is to hardcode model names in server dll code and choose different variants from VGUI menu using ClientCommand, like TFC classes.
Ah that's really unfortunate... Maybe we should open a bug or RFE (request for enhancement) with Valve for possible future update...
__________________
FlatLine Arena | Tutorials
If you don't like something, MOD it!
Not a bug. Just a default behavior of filesystem.
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
Yeah, it's something that should be implemented if we would like to have a real mudding capabilities.
With help from Solokiller, he pointed to the opened issue on the Valve GitHub page.
Allow mods to implement their own GameUI #1763
https://github.com/ValveSoftware/halflife/issues/1763
I guess we have to sit tight and wait (tm).
The workaround like I pointed is to have the default models for valve in your mod with the correct animations. (and to clean up your valve folder assuming a pesky server downloads player model you're not going to use...)
__________________
FlatLine Arena | Tutorials
If you don't like something, MOD it!
Хм. А в Ксаше бы пару false на true поменять. Но лучше настройку в gameinfo конечно.
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
You're saying you have it implemented in Xash Engine?
__________________
FlatLine Arena | Tutorials
If you don't like something, MOD it!
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
Ku2zoff он спрашивает как убрать пункты из меню.
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
Дядя Миша я знаю. Но их никак не убрать, не имея доступа к файловой системе. Чтобы запретить читать модели из папок, что находятся ниже по иерархии чтения. А получить доступ к файловой системе можно из GameUI.dll, и там всё настроить. Valve не откроют ни GameUI, ни VGUI2, им даже насрать на реквесты, что касаются игровых библиотек, которые давно открыты. Подумать только, с 2013 года не могут решить проблему с инпутом, это когда мыш в линуксе и в винде при m_rawinput 1 работает по-ублюдски. И это при пяти-шести пуллреквестах, и как минимум, десятке багрепортов.
Добавлено 15-06-2021 в 00:56:
А не, стоп. В сраной каэсочке и всех официальных модах они это поправили. А вот обновить SDK на гитхабе никак не получается.
Well, Thank you for the details here. I was thinking about coding the models into the server; but that's not going to be convenient... Having in mind that the default system uses info keys (they don't affect the precache as far as I know), only the used model is precached; however if I hardcode them then they will be always precached... and we have the free edicts issue (I love Catch 22...)
Yeah about the GameUI and VGUI2 I also think they will not unlock it.. ; still I was hoping maybe for few extra lines of code there that can potentially be added by Valve and make the life of the modders easier... I mean they are still updating a game release 20+ years ago...
Edit: I'm sorry for answering in English here; I do understand Russian; however if I start writing you'll have quite some fun on my behalf
__________________
FlatLine Arena | Tutorials
If you don't like something, MOD it!
Will the -num_edicts 4096 works on Steam HL? And will it not also work if it's put in the liblist.gam file?
Edit: This line in the liblist.gam file?
commandargs "-num_edicts 4096"
__________________
FlatLine Arena | Tutorials
If you don't like something, MOD it!
Временная зона GMT. Текущее время 21:28. | Страницы (2): [1] 2 » Показать все 18 сообщений этой темы на одной странице |
На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024