Raised This Month: $ Target: $400
 0% 

Problems (V. 4909)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-09-2015 , 13:01   Problems (V. 4909)
Reply With Quote #1

It seems to be a problem with teams.

I am using Tripmine Entity and to get team this is used.

PHP Code:
#define LASERMINE_TEAM pev_iuser1//EV_INT_iuser1
#define OFFSET_TEAM          114
#define cs_get_user_team(%1) CsTeams:get_offset_value(%1,OFFSET_TEAM) 
1. The enemy team isnt affected by the laser.

2. The module i am using (private), cant switch team anymore.

3. The other players who doesnt have ADMIN_LEVEL_H, cant see their lasermine beam.

this is the code im using for that to draw the beam for each team.

PHP Code:
DrawLaser(i_Ent, const Float:v_Origin[3], const Float:v_EndOrigin[3] ) {
    new 
tcolor[3];
    new 
teamid pev(i_EntLASERMINE_TEAM);
    if(
g_LCLMODE == 0)
    {
        switch(
teamid)
        {
            case 
1:{
                
tcolor[0] = 255;
                
tcolor[1] = 0;
                
tcolor[2] = 0;
            }
            case 
2:{
                
tcolor[0] = 0;
                
tcolor[1] = 0;
                
tcolor[2] = 255;
            }
        }
        }else{
        
tcolor[0] = 0;
        
tcolor[1] = 255;
        
tcolor[2] = 0;
    }
    
    static 
idid pev(i_EntLASERMINE_OWNER)
    if(
is_user_connected(id))
    {
        if(
access(idFLAG_VIP) && !zl_is_zombie(id))
        {
            
tcolor[0] = 0;
            
tcolor[1] = 255;
            
tcolor[2] = 0;    
        }
    }
    
    
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
    
write_byte(TE_BEAMPOINTS);
    
engfunc(EngFunc_WriteCoord,v_Origin[0]);
    
engfunc(EngFunc_WriteCoord,v_Origin[1]);
    
engfunc(EngFunc_WriteCoord,v_Origin[2]);
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[0]); //Random
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[1]); //Random
    
engfunc(EngFunc_WriteCoord,v_EndOrigin[2]); //Random
    
write_short(beam);
    
write_byte(0);
    
write_byte(0);
    
write_byte(1);    //Life
    
write_byte(5);    //Width
    
write_byte(0);    //wave
    
write_byte(tcolor[0]); // r
    
write_byte(tcolor[1]); // g
    
write_byte(tcolor[2]); // b
    
write_byte(g_LCBRIGHT);
    
write_byte(255);
    
message_end();

get_offset_value

PHP Code:
// Gets offset data
get_offset_value(idtype) {
    
    new 
key = -1;
    
    switch(
type)
    {
        case 
OFFSET_TEAMkey OFFSET_TEAM;
            case 
OFFSET_MONEY: {
            
key OFFSET_MONEY;
        }
        case 
OFFSET_DEATHkey OFFSET_DEATH;
        }
    
    if(
key != -1)
    {
        return 
get_pdata_int(idkey);
    }
    
    return -
1;

__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 10-09-2015 at 13:33.
SkumTomteN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2015 , 13:22   Re: Cstrike Module Problems (V. 4909)
Reply With Quote #2

Please, please be complete when you post issues, especially if you're using dev.
What is the AMXX version? Is there error in AMXX log? Why I see no cstrike natives? I have no idea what you're trying to say.
__________________
Arkshine is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-09-2015 , 13:34   Re: Cstrike Module Problems (V. 4909)
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
Please, please be complete when you post issues, especially if you're using dev.
What is the AMXX version? Is there error in AMXX log? Why I see no cstrike natives? I have no idea what you're trying to say.
Sorry, "cs_get_user_team" was stuck on my head.

Updated thread.

I did find this error log in debug.log. never had it before.

Code:
----------------------------------------------
CRASH: Fri Oct  9 17:26:11 CEST 2015
Start Line: ./hlds_linux -game czero +maxplayers 32 +map de_dust2_cz +ip 78.46.85.86 +port 20717 +sys_ticrate 1000 -autoupdate -debug -pidfile hlds.10059.pid
[New LWP 26534]
[New LWP 26693]
[New LWP 26694]
[New LWP 26695]
[New LWP 26542]
[New LWP 26535]
[New LWP 26536]
[New LWP 26540]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./hlds_linux -game czero +maxplayers 32 +map de_dust2_cz +ip 78.46.85.86 +port'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0xf31aa36e in MemoryUtils::ResolveSymbol(void*, char const*) () from /home/Steam/CSCZ_Servers/serveur3/czero/addons/amxmodx/dlls/amxmodx_mm_i386.so
[Current thread is 1 (Thread 0xf7478940 (LWP 26534))]
#0  0xf31aa36e in MemoryUtils::ResolveSymbol(void*, char const*) () from /home/Steam/CSCZ_Servers/serveur3/czero/addons/amxmodx/dlls/amxmodx_mm_i386.so
#1  0xff9b95e0 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
No symbol table info available.
From        To          Syms Read   Shared Object Library
                        No          linux-gate.so.1
0xf76f1914  0xf7737c78  Yes         ./libstdc++.so.6
0xf769cad0  0xf769d96c  Yes (*)     /lib32/libdl.so.2
0xf7684870  0xf7690f47  Yes         /lib32/libpthread.so.0
0xf74ec420  0xf761a32e  Yes (*)     /lib32/libc.so.6
0xf7493600  0xf74c0f65  Yes (*)     /lib32/libm.so.6
0xf7783860  0xf779b75c  Yes (*)     /lib/ld-linux.so.2
0xf747ae04  0xf748a490  Yes         ./libgcc_s.so.1
0xf6f5f490  0xf6fe324c  Yes         /home/Steam/CSCZ_Servers/serveur3/engine_i486.so
0xf6f055c0  0xf6f0fd74  Yes (*)     ./libsteam_api.so
0xf6efb9b0  0xf6efeeaa  Yes (*)     /lib32/librt.so.1
0xf6ee2a00  0xf6eef1b8  Yes         /home/Steam/CSCZ_Servers/serveur3/filesystem_stdio.so
0xf5e72400  0xf6a4d240  Yes (*)     /home/Steam/linux32/steamclient.so
0xf5d3f170  0xf5d670a4  Yes (*)     /home/Steam/linux32/crashhandler.so
0xf34e9b70  0xf34ff984  Yes         /home/Steam/CSCZ_Servers/serveur3/./czero/addons/metamod/dlls/metamod.so
0xf32ac350  0xf33d0340  Yes         /home/Steam/CSCZ_Servers/serveur3/czero/dlls/cs.so
0xf31649d8  0xf31be0ec  Yes (*)     /home/Steam/CSCZ_Servers/serveur3/czero/addons/amxmodx/dlls/amxmodx_mm_i386.so
                        No          czero/addons/amxmodx/modules/infinitygame_amxx_i386.so
0xf2ec2c40  0xf2f51300  Yes (*)     czero/addons/amxmodx/modules/mysql_amxx_i386.so
0xf2e4efec  0xf2e7bbb4  Yes (*)     czero/addons/amxmodx/modules/fakemeta_amxx_i386.so
0xf2deada4  0xf2e27a4c  Yes (*)     czero/addons/amxmodx/modules/hamsandwich_amxx_i386.so
0xf2d69110  0xf2d6ed64  Yes (*)     czero/addons/amxmodx/modules/csx_amxx_i386.so
0xf2d5c740  0xf2d60a88  Yes (*)     czero/addons/amxmodx/modules/fun_amxx_i386.so
0xf2d4925c  0xf2d54df4  Yes (*)     czero/addons/amxmodx/modules/cstrike_amxx_i386.so
0xf2d316f0  0xf2d3e148  Yes (*)     czero/addons/amxmodx/modules/engine_amxx_i386.so
0xf2d228f0  0xf2d27df4  Yes (*)     czero/addons/amxmodx/modules/geoip_amxx_i386.so
0xf2b0d5d0  0xf2b56a28  Yes (*)     czero/addons/amxmodx/modules/regex_amxx_i386.so
0xf1218400  0xf1df3400  Yes (*)     ./steamclient.so
0xf0a60670  0xf0ad6020  Yes (*)     ./crashhandler.so
0xf0c3ead0  0xf0c4551b  Yes (*)     /lib32/libnss_files.so.2
(*): Shared library is missing debugging information.
Stack level 0, frame at 0xff9b95b4:
 eip = 0xf31aa36e in MemoryUtils::ResolveSymbol(void*, char const*); saved eip = 0xff9b95e0
 called by frame at 0x9ddee60
 Arglist at 0xff9b95ac, args: 
 Locals at 0xff9b95ac, Previous frame's sp is 0xff9b95b4
 Saved registers:
  eip at 0xff9b95b0
End of crash report
----------------------------------------------
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 10-09-2015 at 13:36.
SkumTomteN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2015 , 14:17   Re: Problems (V. 4909)
Reply With Quote #4

About get_pdata_int, I just found the silly issue related latest commts, my fault as always! Will fix in few minutes.

About ResolveSymbol crash, is it reproductible?
__________________
Arkshine is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-09-2015 , 14:50   Re: Problems (V. 4909)
Reply With Quote #5

Quote:
Originally Posted by Arkshine View Post
About get_pdata_int, I just found the silly issue related latest commts, my fault as always! Will fix in few minutes.

About ResolveSymbol crash, is it reproductible?
No idea, i can test though, i just closed the server.

but i will play and see.

Edit:

So i tested some weapons too. The result is the following.

get_pdata_float / set_pdata_float seems to have issues as well. but maybe you have already noticed that.

Using this code to set next attack and time idle for the weapon. and its currently doing nothing.

PHP Code:
stock Set_WeaponIdleTime(idWeaponId ,Float:TimeIdle)
{
    static 
entwpnentwpn fm_get_user_weapon_entity(idWeaponId)
    if(!
pev_valid(entwpn)) 
        return
        
    
set_pdata_float(entwpn46TimeIdle4)
    
set_pdata_float(entwpn47TimeIdle4)
    
set_pdata_float(entwpn48TimeIdle 0.54)
}

stock Set_PlayerNextAttack(idFloat:nexttime)
{
    
set_pdata_float(id83nexttime5)

Im also using Cmdstart for a different thing. and it cant get past the get_pdata_float to display my "After" print.

PHP Code:
public fw_CmdStart(iduc_handleseed)
{
    if(!
is_alive(id))
        return
    if(
get_player_weapon(id) != CSW_LM || !Get_BitVar(g_Had_LMid))
        return
    
    static 
ButtonButton get_uc(uc_handleUC_Buttons)
    static 
OldButtonOldButton pev(idpev_oldbuttons)
    static 
EntEnt fm_get_user_weapon_entity(idCSW_LM)
    
    if(!
pev_valid(Ent))
        return
        
    if(
Button IN_ATTACK2)
    {
        
client_print(idprint_chat"Hi before pdata_float")
        if(
get_pdata_float(id835) > 0.0
            return
        
client_print(idprint_chat"Hi after pdata_float"//After not showing..
        
if(cs_get_weapon_ammo(Ent) < 5)
            return
                
//Stuff 
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 10-09-2015 at 15:16.
SkumTomteN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2015 , 15:10   Re: Problems (V. 4909)
Reply With Quote #6

The get_pdata_int has been fixed, you can check 4911. You just need to replace fakemeta dll/so (stop your server before).
__________________
Arkshine is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-09-2015 , 15:15   Re: Problems (V. 4909)
Reply With Quote #7

Updated my post.
__________________
Contact: Steam
Videos: Youtube

Last edited by SkumTomteN; 10-09-2015 at 15:15.
SkumTomteN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2015 , 15:21   Re: Problems (V. 4909)
Reply With Quote #8

What says from server conole: meta info fakemeta
__________________

Last edited by Arkshine; 10-09-2015 at 15:21.
Arkshine is offline
SkumTomteN
Veteran Member
Join Date: Oct 2013
Location: Asgard
Old 10-09-2015 , 15:28   Re: Problems (V. 4909)
Reply With Quote #9

Im using metamod-p btw.

Code:
] meta "info" "fakemeta"
Unrecognized meta command: info
usage: meta <command> [<arguments>]
valid commands are:
   version          - display metamod version info
   list             - list plugins currently loaded
Unknown command: meta
__________________
Contact: Steam
Videos: Youtube
SkumTomteN is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-09-2015 , 15:31   Re: Problems (V. 4909)
Reply With Quote #10

As said, please use the server console, or use rcon then.
__________________

Last edited by Arkshine; 10-09-2015 at 15:31.
Arkshine is offline
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 23:45.


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