PDA

View Full Version : Roll the Dice for NS


karlos
07-21-2004, 09:44
this is a rollthedice for Natural-Selection with much fun prizes
bad prizes: death / bitch slap / slap disease / low health / glow / buried / timebomb
good prizes: godlike (1k hp/onos 2k) / super shield / invisible / ha or devour / speed boost / strong weapon / mines+gren or spore / welder or healspray or umbra / jp or bilebomb

Needed modules:
Engine
Fun
Ns2amx (http://www.modns.org/forums/index.php?showtopic=117) (inc files included if u want to compile) [ NOT NEEDED ANYMORE ]
and AssKicR's stocks (http://forums.alliedmods.net/showthread.php?t=853) (only needed if u want to compile) [ NOT NEEDED ANYMORE ]

thx CheesyPeteza for help with fake_damage

NEW PLUG REALEASED
get it here here (http://forums.alliedmods.net/showthread.php?p=68761)
many new features, bug fixes

THIS IS VERSION IS FOR AMXX 0.2, to make it run with 0.16 change:
1. line 194 "new class = ns_get_class(id)" to "new class = ns_getclass(id)"
(its in function "public roll_the_dice(id)")
2. line 464 "new class = ns_get_class(a)" to "new class = ns_getclass(a)"
(its in function "public timer()")

kingpin
07-21-2004, 09:45
nice will put on my NS server tonight. gj.

SirChris
08-07-2004, 07:07
Hi,
i had a problem with this plugin: i cant compile it.
I have all the requied modules, Engine, Fun, Ns2amx and AssKicR's stocks, but i always get the same error:

Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

X:\Steam\SteamApps\MyEmailAdresse\dedicated server\nsp\addons\amxx\scripting\include\ns2a mxhelpers.inc(497) : error 021: symbol already defined: "is_combat"

1 Error.
Drücken Sie eine beliebige Taste . . .

Can someone help me with that or compile it for Windows for me?

karlos
08-07-2004, 07:36
Asskicr's stock and ns2amx have both the command is_combat
to fix:
open asskicr's inc and change thisstock is_combat() {
new MapName[4]
get_mapname(MapName,3)
if (equal(MapName,"co_"))
{
return 1
}
return 0
}to/*stock is_combat() {
new MapName[4]
get_mapname(MapName,3)
if (equal(MapName,"co_"))
{
return 1
}
return 0
}*/ (now the ns2amx command will be only used) sry that i have not mentioned it

SirChris
08-07-2004, 15:25
Okay, now i can compile it but i cant use it, i get this error in the AMX Mod X Log:

[AMXX] Function not found (name "set_msg_block") (plugin "wprolldice.amx")

Any Ideas?

karlos
08-07-2004, 15:57
i dont know, set_msg_block is part of engine module so it must be there, maybe a bad load (have u tried to restart?)

SirChris
08-08-2004, 06:01
Yes, amx tells me its a bad load, but i always get this bad load every time the server starts. Don't know what i had done wrong.
Perhaps we can talk in ICQ or so for more help?
btw: Greetings from Germany to Germany :wink:

edit: I got an other error, while executing rollthedice.amx:
[NS2AMX] Warning: wprolldice.amx: Compiled with include files which do not match the dll version.

Perhaps this can help?
I`m using newest NS2AMX Version 1.11 and AMX Mod X 0.16

karlos
08-08-2004, 08:59
u get the error "[NS2AMX] Warning: wprolldice.amx: Compiled with include files which do not match the dll version" when u use old ns2amx inc files, just replace yours with the one from the ns2amx zip

PS:if u r using a listenserver u need the modified amxx_mm.dll (http://forums.alliedmods.net/showthread.php?t=1531) or wait till amxx 0.20

SirChris
08-08-2004, 13:33
I try it, there but there is always the same error. Seems like i had to wait for amxx 0.20

karlos
08-18-2004, 13:24
important bug fix

baka
08-29-2004, 16:04
wprolldice.sma(194) : error 017: undefined symbol "ns_get_class"
wprolldice.sma(464) : error 017: undefined symbol "ns_get_class"

any idea to this bug? :cry: but if you already got it , send me it PLZ !!

karlos
08-29-2004, 20:15
this error is cause i changed the plugin to amxx 0.2
u need to change 3 lines to work with amxx 0.16, i will write it in first post

baka
08-31-2004, 06:05
isnt workin for amx 0.9.8 or any version of amx ?

[EDIT]

wprolldice.sma(194) : error 017: undefined symbol "ns_getclass"
wprolldice.sma(464) : error 017: undefined symbol "ns_getclass"

any idea? Isnt more easy to zip the .amx/.amxx and the .sma and post the zip? :(

mahnsawce
08-31-2004, 07:43
Someone's gotta say it, and I was here first!

This is an AMX Mod X forum, not AMX Mod forum. They're two different worlds held together by glue. As such, this plugin requires AMX Mod X, not AMX Mod.

baka
08-31-2004, 08:38
yeah soz for that but iisnt workin yet :/

karlos
08-31-2004, 08:49
@baka:
to let it run with amx do the following and download ns2amx:
1. change include amxmodx to amx
2. remove include engine and add include ns2amxhelpers
3. remove stock fakedamage1
4. change ns_get_class to get_class on line 445 and 175
5. change fakedamage1(id,9999.0,0) to fakedamage(id,"trigger_hurt",9999.0,0) on line 596
6. remove line 595

baka
08-31-2004, 09:42
[AMX] invalid plugin ("wprolldice.amx")
[AMXX] invalid plugin ("wprolldice.amx")

:cry: :cry: :cry: :cry: :cry: :cry: :cry: someone can zip it and send it to me plz?

karlos
08-31-2004, 14:08
baka u use all neded modules?
when u want to use it with amxx 0.16 u need the 0.16 compiler
using it with 0.2 tp2 u need 0.2tp2 compiler
using it with newest amxx 0.2tp3 u need the 0.2tp3 compiler
using it with amx u need to compile it with amx compiler

baka
08-31-2004, 15:20
yes i have all these compiler but always invalid plugin :cry:

Silent-Er@sEr
10-04-2004, 11:52
I understand this forum is for amxmodx but some of us ns admins have not moved to it due to the lack of plugins ported from .16 to .20

that said would someone post a working sma for .16 as i change all the lines as needed and i downloaded all the .inc's and i get tons of errors

karlos
10-04-2004, 12:55
what error do u have?
if u would read the first page u would see that the nshelpers incs

[edit] cause of misinformation

Silent-Er@sEr
10-04-2004, 15:27
correct but i am complieing under smxx .16 and the web based compiler for .16 will not complie it


ok got it down to just these 2

wprolldice.sma(196) : error 017: undefined symbol "ns_getclass"
wprolldice.sma(466) : error 017: undefined symbol "ns_getclass"
and them are not even the lines you told me to edit

karlos
10-04-2004, 16:12
sry made one mistake in last post
u dont need nshelpers BUT u need ns2amx
the web compiler dont have the ns2amx includes, so u need to compile it yourself

Silent-Er@sEr
10-04-2004, 16:47
i have every helper inc i could find

karlos
10-04-2004, 16:51
not helper inc but ns2amx inc
use the link on fisrt page or go to www.modns.org in amx section sticky

Silent-Er@sEr
10-04-2004, 17:04
correct i have all of them

Silent-Er@sEr
10-20-2004, 16:36
I found after using the web complier that This plugin had a runtime error on line 113 that was Spammin my amx logs makin the days log 3 meg and more
with EKS help "all him realy" I changed that line

from set_user_rendering(id,kRenderFxGlowShell,0,0, 0,kRenderTransAlpha,255)

to if(is_user_connected(id))set_user_rendering(i d,kRenderFxGlowShell,0,0,0,kRenderTransAlpha, 255)

and that cleared it

here is the fixed .sma

karlos
11-09-2004, 17:29
sry that i havenot replied to this but i just saw it right now
SHAME ON ME :roll: :oops:

but there is a new roll dice by me and mICKE here (http://forums.alliedmods.net/showthread.php?p=68761)

many new features, bug fixes

depot
09-25-2005, 13:58
Runtime error v0.79 with AMXX v1.60:
L 09/25/2005 - 12:53:50: [FUN] Invalid player 1
L 09/25/2005 - 12:53:50: [AMXX] Displaying debug trace (plugin "ns_rtd.amxx")
L 09/25/2005 - 12:53:50: [AMXX] Run time error 10: native error (native "set_user_rendering")
L 09/25/2005 - 12:53:50: [AMXX] [0] ns_rtd.sma::reset (line 697)
L 09/25/2005 - 12:53:50: [AMXX] [1] ns_rtd.sma::client_disconnect (line 185)

karlos
09-26-2005, 08:16
this is the old plugin
new plugin is here ns_rtd (http://forums.alliedmods.net/showthread.php?t=7490)

and latest version is 0.84b

depot
09-26-2005, 08:45
It is very confusing when you have identical plugins in 2 seperate threads. Perhaps you could have this one locked?