Raised This Month: $51 Target: $400
 12% 

Model Replacement Technology


Post New Thread Reply   
 
Thread Tools Display Modes
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-19-2005 , 09:44  
Reply With Quote #21

I fixed up the entity model replace function.
I'll post it later tonight.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
-=|JFH|=-cLaD
Senior Member
Join Date: Jun 2004
Old 04-19-2005 , 13:59  
Reply With Quote #22

that did help neXXus` thanks. only thing is if 3 ppl join the server , it seems to start having 15 and 20 sec lag spikes. i turned off most of our plugins to test it, but when those lag spikes hit. everyone lags out with connection problems.
could it have something to do with the :

tsx_set_replacement "models/v_tommy.mdl" "models/v_tommyj.mdl"
tsx_set_replacement "models/p_tommy.mdl" "models/p_tommyj.mdl"
tsx_set_replacement "models/p_tommy_l.mdl" "models/p_tommyj_l.mdl"

i put them in the amxx.cfg file. do they to go in the server.cfg ?

edit: ok scrach what i said about when 3 ppl or more join it starts to have lag spikes. I was on there just myself and the server had a major lag spike for about 10 sec. if i disable the plugin everything is fine.The servers ping in HLSW is normaly around 45 to 65. when the lag spikes hit , they jump from 1300 to 1600. i typed in developer 1 in my console and when the next lag spike hit and i timed out.it gave this error in the console:
Netchan_Clear() : reliable lenth not 0, reliable_sequence: 13, incoming_reliable_acknowledged: 0
as of right now this is what my plugins.ini looks like.

; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)

; Chat / Messages
adminchat.amxx ; console chat commands
antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Day of Defeat
stats.amxx ; stats on death or round end (DoD Module required!)
statssounds.amxx ; precache plugin for stats plugins
;stats_logging.amxx ; weapons stats logging (DoD Module required!)


; Custom - Add 3rd party plugins here

adminmodx.amxx ; More admin commands
psychosounds.amxx ; client sounds
//dod_flamethrower.amxx ; flamethrower 1/0
dod_jetpack.amxx ; jetpack (1/0)
//throwing_knives.amxx ; throw knives
//dod_laser_guns.amxx ; laserguns (1/0)
dod_grenade_events.amxx ; grenade events
//amx_piss.amxx ; pissing
//admin_aimmenu.amxx ; admin commands to who's spray
dod_oneweaponmod.amxx ; only 1 weapon for everyone
loadingsound.amxx ; song when joining server
//day_light.amxx ; daylight changer
//dod_mapbonus.amxx ; extra events in some maps
//voicecomm_ban.amxx ; bans assholes from speaking
//search_logs_for_players.amxx ; search the log in game
//amx_sniperfun_dod2.amxx
//dod_closecombatfun.amxx
//fireworks.amxx
//timebomb.amxx
dod_grenadefun.amxx
dod_ammogiver_136.amxx
//dod_ubergarand_156.amxx
//aim_practice.amxx
admin_metahook.amxx
dod_smoke.amxx
multijump.amxx
dod_weapon.amxx
dod_replace_model.amxx

i have even had 3 or 4 more plugins running with what is running now and it was fine.
here is the modules.ini

; ------------------------------
; Fun - provides extra functions
; ------------------------------
;fun_amxx_i386.so
fun_amxx.dll
;fun_amxx_amd64.so

; ----------------------------------------------------
; Engine - provides engine functions core to Half-Life
; ----------------------------------------------------
;engine_amxx_i386.so
engine_amxx.dll
;engine_amxx_amd64.so

; ----------------------------------------------------------
; Fakemeta - provides a massive interface into the HL engine
; ----------------------------------------------------------
;fakemeta_amxx_i386.so
fakemeta_amxx.dll
;fakemeta_amxx_amd64.so

; -------------------------------------------
; Database Access - only enable one of these
; -------------------------------------------
; MySQL
;mysql_amxx_i386.so
mysql_amxx.dll
;mysql_amxx_amd64.so
; PostgreSQL
;pgsql_amxx_i386.so
;pgsql_amxx.dll
; Microsoft SQL
;mssql_amxx.dll

; ---------------------------------------------
; GeoIP - determines the country of ip adresses
; ---------------------------------------------
;geoip_amxx_i386.so
;geoip_amxx.dll
;geoip_amxx_amd64.so

; ------------------------------------
; Array - advanced arrays in scripting
; ------------------------------------
;array_amxx_i386.so
array_amxx.dll
;array_amxx_amd64.so

; --------------------------------
; Sockets - network socket support
; --------------------------------
;sockets_amxx_i386.so
sockets_amxx.dll
;sockets_amxx_amd64.so

; --------------------------
; Regular Expression support
; --------------------------
;regex_amxx_i386.so
regex_amxx.dll
;regex_amxx_amd64.so

; --------------------------------------------------
; Day of Defeat Fun - adds functions specific to DoD
; --------------------------------------------------
;dodfun_amxx_i386.so
dodfun_amxx.dll
;dodfun_amxx_amd64.so

; -------------------------------------------------------
; Day of Defeat X - adds stats and addition DoD functions
; -------------------------------------------------------
;dodx_amxx_i386.so
dodx_amxx.dll
;dodx_amxx_amd64.so

FF_Module.dll
__________________
-=|JFH|=-cLaD is offline
Send a message via Yahoo to -=|JFH|=-cLaD
neXXus`
Member
Join Date: Mar 2005
Location: Germany
Old 04-20-2005 , 09:26  
Reply With Quote #23

dunno exactly why u have this lags, but u did not read carefully:

the commands

tsx_set_replacement "models/v_tommy.mdl" "models/v_tommyj.mdl"
tsx_set_replacement "models/p_tommy.mdl" "models/p_tommyj.mdl"
tsx_set_replacement "models/p_tommy_l.mdl" "models/p_tommyj_l.mdl"

dont go in the amxx.cfg!!! it is a server command, you send this per rcon or hlsw or whatever

examples:
rcon tsx_set_replacement "models/v_tommy.mdl" "models/v_tommyj.mdl"
amx_rcon tsx_set_replacement "models/v_tommy.mdl" "models/v_tommyj.mdl"

if u do so, the replacement will be added in the approriate file, for example map_replace.cfg in the amxmodx/data dir. dont put it in server.cfg etc cos it then will be executed everytime u change map and the replacements will be added very map also, thus the plugin will change the model multiple times if u see them, maybe this causes the lags.

i suggest u delete the map_replace.cfg in ur data dir and then execute the tsx_set_replacement "models/v_tommy.mdl" "models/v_tommyj.mdl" only one time via rcon or hlsw, thats enough

btw, forget the p_ or w_ or whatever models, only the v_ ones will work (the models only YOU can see, weapon models from ur first person sight), like ur v_tommyj.mdl, p_tommyj.mdl wont

*edit*
well twilightsuzuka is right, i actually meant w_ models ;) (world models, lying aroung guns etc), p_ will work, sorry

hf
neXXus` is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-20-2005 , 13:20  
Reply With Quote #24

Actually, with the current version, v and p will work. View model, and Player Model.

I have a new one that works with ALL entities, and I'm working on hooking it up to an event so it does not lag.

See, it does it every prethink, so thats gonna cause some lag. I'm working on doing it every time you switch weapons. Should not be too hard.

Anyway, I'll upload a new one that allows you to replace ANY entities model.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
neXXus`
Member
Join Date: Mar 2005
Location: Germany
Old 04-20-2005 , 15:26  
Reply With Quote #25

all models would be cool, but change only on weapon change? whats about w_ models, u see a gun lying around and switch weapons and suddenly it has another model?!
could u try to make it also change models if someone is firing something, like a grenade or bilebomb/acidrocket in natural-selection (got a cool volleyball model for that ;)) i hope u can do that
neXXus` is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 04-20-2005 , 21:08  
Reply With Quote #26

All entities besides AMXX set one will now be replaced, and a few CPU saving techniques have been done.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
strikerx22
Junior Member
Join Date: Apr 2005
Old 04-21-2005 , 20:40   Help...
Reply With Quote #27

I installed this plugin and it seems like it is doing fine, no errors or anything. But when someone joins the server, as soon as they join, the server freezes when they are in, and it unfreezes when they are gone. Any explanation?
strikerx22 is offline
-=|JFH|=-cLaD
Senior Member
Join Date: Jun 2004
Old 04-21-2005 , 20:59  
Reply With Quote #28

i have the same problem, but everyone lags out then the server stablizes.i have w/p/v models working.
ours does that, after the 3rd person joins.any idea what the limit is on how many can be put in ?

map_replace.cfg

models/v_tommy.mdl<tab>models/v_tommyj.mdl
models/w_tommy.mdl<tab>models/w_tommyj.mdl
models/p_tommy.mdl<tab>models/p_tommyj.mdl
models/v_stick.md<tab>models/v_stickj.mdl
models/w_stick.mdl<tab>models/w_stickj.mdl
models/p_stick.mdl<tab>models/p_stickj.mdl
models/v_spade.mdl<tab>models/v_spadej.mdl
models/p_spade.mdl<tab>models/p_spadej.mdl
models/w_spade.mdl<tab>models/w_spadej.mdl
models/w_mg42.mdl<tab>models/w_mg42j.mdl

on the last line : models/w_mg42.mdl
when you try to <tab> it only moves over 1 space and not a <F U L L> tab.how will that effect this file?
__________________
-=|JFH|=-cLaD is offline
Send a message via Yahoo to -=|JFH|=-cLaD
strikerx22
Junior Member
Join Date: Apr 2005
Old 04-21-2005 , 21:13  
Reply With Quote #29

I dont think that effects the file at all. But you dont need to edit that manually, go into the server and do the tsx_set_replacement <model1> <modle2>, thats what you do, don't edit it manually. I am reall mad that the server keeps resetting. Can post your NS modules file? So i know if that is the problem?
__________________
Padme:Obi-Wan told me you killed my husband, the father of my child...
Vader:No! I am your babies Daddy!
Padme: *GASP*!?!?!?!?!?!?!
strikerx22 is offline
-=|JFH|=-cLaD
Senior Member
Join Date: Jun 2004
Old 04-21-2005 , 21:34  
Reply With Quote #30

since the command line is so long and i have a few i'm tring to get to work.i was just tring it like the other post said.
heres the modules for my game (dod)

fun_amxx.dll
engine_amxx.dll
fakemeta_amxx.dll
mysql_amxx.dll
array_amxx.dll
sockets_amxx.dll
regex_amxx.dll
dodfun_amxx.dll
dodx_amxx.dll
FF_Module.dll

and this is what i was tring to have running in the map_replace.cfg
i would enter it all in the cfg file then upload it to the server.

models/v_mg42.mdl <TAB> models/v_mg42j.mdl
models/v_spade.mdl models/v_spadej.mdl
models/v_stick.mdl models/v_stickj.mdl
models/v_tommy.mdl models/v_tommyj.mdl
models/v_stick.mdl models/v_stickj.mdl
models/v_tommy.mdl models/v_tommyj.mdl
models/v_spade.mdl models/v_spadej.mdl
models/v_mg42.mdl models/v_mg42j.mdl
models/w_tommy.mdl models/w_tommyj.mdl
models/w_stick.mdl models/w_stickj.mdl
models/w_spade.mdl models/w_spadej.mdl
models/w_mg42.mdl models/w_mg42j.mdl
models/w_mg42_box.mdl models/w_mg42_boxj.mdl
models/w_mg42.mdl models/w_mg42j.mdl
models/w_mg42_box.mdl models/w_mg42_boxj.mdl
models/w_mg42.mdl models/w_mg42j.mdl
models/w_spade.mdl models/w_spadej.mdl
models/w_stick.mdl models/w_stickj.mdl
models/w_tommy.mdl models/w_tommyj.mdl
models/p_mg42bd.mdl models/p_mg42bdj.mdl
models/p_mg42bu.mdl models/p_mg42buj.mdl
models/p_mg42pr.mdl models/p_mg42prj.mdl
models/p_mg42sr.mdl models/p_mg42srj.mdl
models/p_tommy.mdl models/p_tommyj.mdl
models/p_spade.mdl models/p_spadej.mdl
models/p_stick.mdl models/p_stickj.mdl
__________________
-=|JFH|=-cLaD is offline
Send a message via Yahoo to -=|JFH|=-cLaD
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode