AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   CSDM (https://forums.alliedmods.net/forumdisplay.php?f=87)
-   -   CSDM 2.1.3d KWo beta (https://forums.alliedmods.net/showthread.php?t=47306)

Momento 03-22-2012 13:05

Re: CSDM 2.1.2k beta
 
I have a little problem with healkit i try to make 250 max health but after 250 it drops to 0

Here is what i changed

Code:

stock bool:giveItemMedkit(ptd, full_ack = true)
{
        static Float:fValue, Float:fMaxHealth

        pev(ptd, pev_max_health, fMaxHealth)
       
        fValue = float(get_user_health(ptd))
        if(fValue >= 250)
                return false
       
        fValue += g_medkit
        if(fValue > 250)
                fValue = 250

        set_pev(ptd, pev_health, fValue)

        if (!is_user_bot(ptd))
                sendItemPickupMsg(ptd, "item_healthkit")

        if(full_ack) {
                emit_sound(ptd, CHAN_ITEM, "items/smallmedkit1.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
        }

        return true
}

is there anyone can help me?

SyluxLockjaw100 07-19-2012 04:34

Re: CSDM 2.1.2k beta
 
Quote:

Originally Posted by Momento (Post 1673692)
I have a little problem with healkit i try to make 250 max health but after 250 it drops to 0

Here is what i changed

Code:

stock bool:giveItemMedkit(ptd, full_ack = true)
{
    static Float:fValue, Float:fMaxHealth

    pev(ptd, pev_max_health, fMaxHealth)
   
    fValue = float(get_user_health(ptd))
    if(fValue >= 250)
        return false
   
    fValue += g_medkit
    if(fValue > 250)
        fValue = 250

    set_pev(ptd, pev_health, fValue)

    if (!is_user_bot(ptd))
        sendItemPickupMsg(ptd, "item_healthkit")

    if(full_ack) {
        emit_sound(ptd, CHAN_ITEM, "items/smallmedkit1.wav", VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
    }

    return true
}

is there anyone can help me?

The game engine has a limit of 255 HUD health,you should use a plugin that shows a health HUD message.

extream87 07-19-2012 13:57

Re: CSDM 2.1.2k beta
 
New valve updates cause crash in the sv when ffa is enabled.

RuRuRu612754 08-07-2012 11:35

Re: CSDM 2.1.2k beta
 
hello

radar_disable = 1
radar will disappear if you use this command.
however, the radar itself will no longer be displayed when you use this command.
how to display the radar, not to appear in the enemy Do you have radar?

best regards,

mockefella 08-07-2012 20:21

Re: CSDM 2.1.2k beta
 
HEY!

Just downloaded this great plugin, how come when you throw a grenade, the "fire in the hole" message and sound is gone in FFA mode???

Any way I can turn it back on for FFA???

thanks!

KWo 03-30-2013 13:38

Re: CSDM 2.1.3b KWo unnoficial
 
I've just updated the first post. New version is there.
2.1.3b is an update for feb 2013 steam update (thanks to arkshine). Optimized the code for finding dropped weapons they need to be removed by CSDM - thanks again to arkshine to figure it out. It requires AMX X 1.8.2.
Let me know how is this working. I'm expecting a better performance with this version than with previous one. If somebody can check that performance difference (if it really exists) - please use 2.1.2k plugins with this module (2.1.3 KWo unnoficial). Then use 2.1.3b complete package. The best would be test i.e. with 24 or more bots on the same map on the same server.

jonnzus 03-31-2013 13:07

Re: CSDM 2.1.3b KWo beta
 
Everything seems fine, server is running and no crashes. Hlds on running in debian server.

TRUE RED 03-31-2013 21:38

Re: CSDM 2.1.3b KWo beta
 
Yep, no errors finally. Thank you.

jonnzus 04-05-2013 18:11

Re: CSDM 2.1.3b KWo beta
 
Players can't hear shooting sounds with this mod.

1337 05-18-2013 13:02

Re: CSDM 2.1.3b KWo beta
 
btw, whats difference betwen metamod 1.20 and 1.21 (not Metamod-P) ?

Arkshine 05-18-2013 13:06

Re: CSDM 2.1.3b KWo beta
 
An update for CZ. But things would need to be updated anyway. So you should use 1.21-am or higher.

kwpd 05-18-2013 15:40

Re: CSDM 2.1.3b KWo beta
 
CSDM 2.1.3b KWo beta... server crash.! mp.dll
version : 48/1.1.2.7 6027 secure (10)

Arkshine 05-18-2013 15:50

Re: CSDM 2.1.3b KWo beta
 
Give us a reproducible way because saying it crashes doesn't help at all if you don't give details.
Do you have FFA enabled ? If so try without and see if it still crashes.

kwpd 05-18-2013 15:53

Re: CSDM 2.1.3b KWo beta
 
when the server does a sv restart the server crashes
FFA
enabled = 0

Arkshine 05-18-2013 17:14

Re: CSDM 2.1.3b KWo beta
 
1 Attachment(s)
This helps. Try that and tell me.


For the record to know why it crashes : the modules hooks the CHalfLifeMultiplay::RestartRound() function ; and to do that, it patches some bytes at the end of function. To do that, you need to hardcode the length from start to the "return" instruction. Here, after the last (April), it seems the length differs. Fastly checked and doesn't crash now when a round restarts. Considering CS is not done with updates, I will update later to hook in another way (at the start of function), like I've done for linux, it will be more reliable against such problems.

kwpd 05-18-2013 17:46

Re: CSDM 2.1.3b KWo beta
 
:D thx... funciona bien..

1337 05-18-2013 21:44

Re: CSDM 2.1.3b KWo beta
 
Quote:

Originally Posted by Arkshine (Post 1954071)
Give us a reproducible way because saying it crashes doesn't help at all if you don't give details.
Do you have FFA enabled ? If so try without and see if it still crashes.

since last 1.6 update listen server crashes with last csdm 2.1.3b and last amxmod installed
so its about valve's update

Arkshine 05-19-2013 04:21

Re: CSDM 2.1.3b KWo beta
 
Did you read the posts above ? -_-

kwpd 05-20-2013 19:41

Re: CSDM 2.1.3b KWo beta
 
Quote:

Bug csdm_enable 1 and csdm_enable 0
Server "map de_dust2", "map de_dust2" is repeated 2 times change maps
sorry .. but not a bug .. is a command added in the CSDM_mail
e already eliminated: D

PHP Code:

set_task (3.0"do_changelevel")

public 
do_changelevel ()
{
current_map new [32]
get_mapname (current_map31)
server_cmd ("changelevel% s"current_map)



^SmileY 05-21-2013 22:25

Re: CSDM 2.1.3b KWo beta
 
Its Crashing in last update with a listen server, but with new binary its working for me.

Update it on main package :)

KWo 06-02-2013 16:00

Re: CSDM 2.1.3c KWo beta
 
I have updated again the first post with arkshine's fix for april's 2013 steam update.

kNowo 06-13-2013 15:29

Re: CSDM 2.1.3c KWo beta
 
@KWo, could you repost your 2.1.2k? I've added some modifications of my own into them and now I wanted to compare them with default 2.1.2k and move those changes inside 2.1.3c.

marciux 06-19-2013 12:29

Re: CSDM 2.1.3c KWo beta
 
I got a problem when installed it on server...
Quote:

[ 31] unknown unknown unknown csdm_main.amxx bad load
[ 32] unknown unknown unknown csdm_equip.amxx bad load
[ 33] unknown unknown unknown csdm_spawn_pres bad load
[ 34] unknown unknown unknown csdm_misc.amxx bad load
[ 35] unknown unknown unknown csdm_stripper.a bad load
[ 36] unknown unknown unknown csdm_protection bad load
[ 37] unknown unknown unknown csdm_itemmode.a bad load
( 31) Load fails: Plugin uses an unknown function (name "csdm_respawn") - check your modules.ini.
( 32) Load fails: Plugin uses an unknown function (name "csdm_active") - check your modules.ini.
( 33) Load fails: Plugin uses an unknown function (name "csdm_trace_hull") - check your modules.ini.
( 34) Load fails: Plugin uses an unknown function (name "csdm_active") - check your modules.ini.
( 35) Load fails: Plugin uses an unknown function (name "csdm_active") - check your modules.ini.
( 36) Load fails: Plugin uses an unknown function (name "csdm_active") - check your modules.ini.
( 37) Load fails: Plugin uses an unknown function (name "csdm_give_item") - check your modules.ini.
Anyone got any idea why?

KWo 06-19-2013 13:52

Re: CSDM 2.1.3c KWo beta
 
Quote:

Originally Posted by Arkshine (Post 1972021)
What is the output of "version" command ?


marciux 06-19-2013 14:06

Re: CSDM 2.1.3c KWo beta
 
Code:

] rcon version
Protocol version 48
Exe version 1.1.2.6/Stdio (cstrike)
Exe build: 11:30:00 Aug 28 2012 (5787)

I've been using updatetool, not steamCMD

Arkshine 06-19-2013 14:12

Re: CSDM 2.1.3c KWo beta
 
It's expected then. Newer versions are for latest STEAM update.

marciux 06-19-2013 14:22

Re: CSDM 2.1.3c KWo beta
 
So you mean I have to use steamCMD? If yes, could I get older version somewhere? As I'm using some plugins, which could not support the newest hl version

Arkshine 06-19-2013 15:18

Re: CSDM 2.1.3c KWo beta
 
You don't have to upgrade.

oldtype 09-07-2013 12:23

Re: CSDM 2.1.3c KWo beta
 
I can't figure out, how to make the config, so that, the only thing that Item mode does is to add health and armor troughout the map and nothing more.. Now i get things that i don't want like, getting automatically random weapon at the connect etc..

Code:

;CSDM Configuration File
; Default settings by BAILOPAN

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Main plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[settings]

;Sets whether CSDM is enabled or not.
enabled = 1

;Sets whether or not players should be stripped of weapons on round start
; (excludes knife)
strip_weapons = 1

;Sets how long weapons should stay on the ground for after being dropped
;in seconds.  note that enabling this can create lots of lag for clients
; AND server.  0 is immediate, -1 is infinite.
weapons_stay = 0

;Sets the spawn mode.
; "none" - users spawn at normal map spawn points
; "preset" - csdm_spawn_preset.amxx required, uses predefined spawns in config files
; -- others may be supplied by 3rd party plugins
spawnmode = preset

;Sets whether the bomb is removed
remove_bomb = 1

;Sets the spawn waiting time
spawn_wait_time = 0.75

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the FFA plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ffa]
;Set whether free for all mode is enabled by default
enabled = 0

;Set whether the radar is scrambled (0) or hidden at all (1)
radar_disable = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Misc plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[misc]
;Map objectives are removed by their flags.
; a - as_ maps
; b - buyzones are removed
; c - cs_ maps
; d - de_ maps
remove_objectives = abcd

;Blocks people from using all buy commands
block_buy = 1

;Auto-refills ammo when it gets depleted
ammo_refill = 1

;Says a radio command to a player when they respawn
spawn_radio_msg = 1

;Hide money if block_buy is 1
hide_money = 0

;Hide timer if remove_objectives is acd or abcd
hide_timer = 0


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the Stripper plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[stripper]
;Is stripping entities enabled?
enabled = 1

;write here the list of entities You want to remove from the map
;Note:
;It's not recommended to put more then these listed below.
;HL sometimes behaves strange when You want to remove some entities
;so the plugin author cannot give You the warranty it will work
;with all entities You will write here.
;These default ones below are tested and the game is not crashing with them

class = player_weaponstrip
class = game_player_equip
class = item_healthkit
class = item_battery
class = armoury_entity
class = item_longjump


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the ticketing plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[ticketing]

;Is round ticketing enabled?
enabled = 0

;Number of times a team can have players respawn before they stop
;being able to respawn or (if the ticketing_player is enabled)
;number of times the player is able to respawn during one round
tickets = 10

;Shows the state of tickets: 0 - disabled, 1 - as HUD, 2 - as chat
show_state = 1

;Ticketing is counted for team (0) or separatelly for each player (1)
ticketing_player = 0

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the protection plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[protection]

;Is spawn protection enabled?
enabled = 1

;Is glowing enabled if protection is on?
glowing = 1

;Colors of glow shell, leave this in quotes
;The digits are R, G, B, A where A is the alpha transparency
; (as A gets higher, the glow shell is thicker)
colorst = "255 0 0 200"
colorsct = "0 0 255 200"
colorsffa = "0 255 0 200"

;Number of seconds someone is protected after respawn.
time = 2

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the equip plugin for these sections
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[equip]

;Equip Menu flags:
; p - primary
; s - secondary
; a - armor
; g - grenade
; b - buy
menus = psa

;Autoitem flags:
; a - armor
; h - helmet
; g - grenades
; d - defusekit (CTs only!)
; n - nightvision
autoitems = ah

;Grenade flags:
; f - flashbang
; h - he grenade
; s - smoke grenade
grenades = fhs

;Sets number of flashbangs given if
; grenades are enabled
fnadesnum = 2

;Enables the guns menu always when the players uses say "guns"
always_allow_gunmenu = 1

;;;;;;;;;;;;;;;;
;;WEAPON MENUS;;
;;;;;;;;;;;;;;;;

;Format for weapon menus is:
;shortname "Display Name" menupage
;Change the '1' to a '0' to block the weapon
;Removing or moving things
;  from the list will change the order of the menus!

[secondary]
usp USP 1
glock18 Glock 1
deagle Deagle 1
p228 P228 1
elite Elite 1
fiveseven "Five Seven" 1

[primary]
m4a1 M4A1 1
ak47 AK47 1
aug AUG 1
sg552 SG552 1
galil Galil 1
famas Famas 1
scout Scout 1
awp AWP 1
sg550 SG550 1
m249 M249 1
g3sg1 G3SG1 1
ump45 "UMP 45" 1
mp5navy "MP5 Navy" 1
m3 M3 1
xm1014 XM1014 1
tmp TMP 1
mac10 "Mac 10" 1
p90 P90 1


;List weapons here the bots can randomly have
;The short name must match one in the list above
[botsecondary]
deagle
usp
elite
fiveseven

[botprimary]
ak47
m4a1
aug
sg552
galil
famas
scout
awp
sg550
m249
g3sg1
mp5navy
m3
xm1014


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;You must be running the item mode plugin for this section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[items]

;Is item mode enabled?
enabled = 1

;If set to 1, players will drop a pack of goodies when they die
; (include weapon, ammo & jetpack); if set to 2  - same as one
; but includes armor & heatlh also
drop_packs = 2

;Sets the number of armor given by a battery. Default is 15.
battery = 15

;Sets the number of health given by a medkit. Default is 15.
medkit = 15

;Sets the time to wait for an item to reappear on its place. Default is 20 (0 = permanent)
item_time = 9999

;Sets how long packs stay on the ground. (Max is 30 seconds)
drop_time = 15

;If set to 1 the item will not have the falling down effect. Default is 0.
persistent_items = 0

;Sets how many he nades the user may keep in his hands. Default is 1.
max_hnades = 1

;Sets how many flashbangs the user may keep in his hands. Default is 2.
max_fnades = 2

;Sets how many smoke nades the user may keep in his hands. Default is 1.
max_snades = 1

;Allows/disallows to use gun menu if item mode is enabled.
;For example to pickup ammo You need item mode enabled, but guns You may
;want to get from the menu instead from the ground.
no_gun_menu = 1


;Remove semicolons to restrict any of the following items
; or add the short weapon names of the weapons you want to restrict (m4a1, ak47, awp ...)
[item_restrictions]
;m4a1
;ak47
;aug
;sg552
;galil
;famas
;scout
;awp
;sg550
;m249
;g3sg1
;ump45
;mp5navy
;m3
;xm1014
;tmp
;mac10
;p90
;elite
;longjump
;medkit
;battery
;pistolammo
;rifleammo
;shotammo
;smgammo
;awpammo
;paraammo
;fullammo
;armor
;flashbang
;hegrenade
;smokegrenade


Which 09-09-2013 02:45

Re: CSDM 2.1.3c KWo beta
 
I updated hlds via SteamCMD and installed the latest metamod-p & amxmodx + this version of CSDM, but it crashes my server:

Program terminated with signal 11, Segmentation fault.
#0 0x00000000 in ?? ()
#0 0x00000000 in ?? ()
#1 0xf343b387 in CBasePlayer::UpdateClientData (this=0xefbea2f8) at ../cstrike/dlls/player.cpp:8262
#2 0xf343e8b6 in PreThink (this=0xefbea2f8) at ../cstrike/dlls/player.cpp:4804
#3 CBasePlayer::PreThink (this=0xefbea2f8) at ../cstrike/dlls/player.cpp:4719
#4 0xf2f8dd7e in ?? () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Program terminated with signal 11, Segmentation fault.
#0 0xf342451a in CBasePlayerWeapon::UpdateClientData (this=0xf025fc60, pPlayer=0xf0046a28) at ../cstrike/dlls/weapons.cpp:1212
#0 0xf342451a in CBasePlayerWeapon::UpdateClientData (this=0xf025fc60, pPlayer=0xf0046a28) at ../cstrike/dlls/weapons.cpp:1212
#1 0xf3401387 in CBasePlayer::UpdateClientData (this=0xf0046a28) at ../cstrike/dlls/player.cpp:8262
#2 0xf34048b6 in PreThink (this=0xf0046a28) at ../cstrike/dlls/player.cpp:4804
#3 CBasePlayer::PreThink (this=0xf0046a28) at ../cstrike/dlls/player.cpp:4719
#4 0xf2f53d7e in ?? () from cstrike/addons/amxmodx/modules/hamsandwich_amxx_i386.so
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

It crashes randomly :( and after it crashes once there are like 5-10 more crashes which occur in 10 sec of playing, and after that there are no crashes for a few hours. There are only the base amxmodx plugins + csdm so the problem is in CSDM. Any fix?

KWo 09-10-2013 05:40

Re: CSDM 2.1.3c KWo beta
 
Can You write in the server console such commands:
version
meta list
and show us the output of these commands here?

Arkshine 09-10-2013 06:50

Re: CSDM 2.1.3c KWo beta
 
Try to use metamod 1.21-am instead. -p version is kind of unstable because of aggressive optimization.

Which 09-11-2013 04:40

Re: CSDM 2.1.3c KWo beta
 
2 Attachment(s)
Quote:

Originally Posted by KWo (Post 2031844)
Can You write in the server console such commands:
version
meta list
and show us the output of these commands here?

Quote:

Originally Posted by Arkshine (Post 2031862)
Try to use metamod 1.21-am instead. -p version is kind of unstable because of aggressive optimization.

Hello again. KWo & Arkshine - see the attached image. I tried metamod 1.21-am but the same crashes occur and is very annoing - you can see the debug log (also attached a small part of it).

I also have another server without CSDM and there aren't any crashes from its start. So it doesn't matter - metamod or metamod-p there are still crashes. :cry:

octora 09-13-2013 04:03

Re: CSDM 2.1.3c KWo beta
 
Great man! It work after i try csdm 2.1 and not work :D

Arkshine 09-13-2013 05:16

Re: CSDM 2.1.3c KWo beta
 
@Which, it happens when you enable ffa ? Well, I can try to take a look later, these patches in memory are a pain in the ass.

Which 09-13-2013 14:31

Re: CSDM 2.1.3c KWo beta
 
No, ffa is disabled but the item mode is on.

Arkshine 09-13-2013 15:06

Re: CSDM 2.1.3c KWo beta
 
Well, if disabled, it most likely not CSDM.

You said you have only base plugins and CSDM, but in your debug, I see Ham loaded, and so far I remember they don't use ham. So, what plugins are actually loaded ? (amxx list)

Which 09-14-2013 06:57

Re: CSDM 2.1.3c KWo beta
 
Quote:

Originally Posted by Arkshine (Post 2033950)
Well, if disabled, it most likely not CSDM.

You said you have only base plugins and CSDM, but in your debug, I see Ham loaded, and so far I remember they don't use ham. So, what plugins are actually loaded ? (amxx list)

Well, I also use the BF2 Mod but it doesn't cause crashes. I removed CSDM 2 days ago and there are no crashes since then - I replaced it with a simple respawn plugin + CSDM Style Gun Men.

Here are the additional plugins:
bf2rank.amxx
vip.amxx
rs.amxx
abd.amxx
cs_team_semiclip.amxx
QuakeSounds.amxx
adminlisten.amxx
bad_camper.amxx

But as I said there are no crashes since I removed CSDM. :(

octora 09-15-2013 12:25

Re: CSDM 2.1.3c KWo beta
 
Quote:

Originally Posted by Which (Post 2034268)
Well, I also use the BF2 Mod but it doesn't cause crashes. I removed CSDM 2 days ago and there are no crashes since then - I replaced it with a simple respawn plugin + CSDM Style Gun Men.

Here are the additional plugins:
bf2rank.amxx
vip.amxx
rs.amxx
abd.amxx
cs_team_semiclip.amxx
QuakeSounds.amxx
adminlisten.amxx
bad_camper.amxx

But as I said there are no crashes since I removed CSDM. :(

I also install bf2 mod in csdm. but no significant problems. Another plugin might cause your server to crash. :D

KWo 09-16-2013 02:59

Re: CSDM 2.1.3c KWo beta
 
Quote:

Originally Posted by octora (Post 2035212)
I also install bf2 mod in csdm. but no significant problems. Another plugin might cause your server to crash. :D

Can You also write in the console such commands:
version
meta list
and show us the output here, so we can compare if You guys have the same hlds and AMXX/csdm versions? What is Your OS?


All times are GMT -4. The time now is 06:13.

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