AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Modern warfare 2 Mod v1.3.6b (https://forums.alliedmods.net/showthread.php?t=165939)

krecik002 09-09-2011 10:36

Re: Modern warfare 2 Mod v1.1.1b
 
http://www.youtube.com/watch?v=w1qAGeT-Q1Y
Link video with my Sentry gun

D.Moder 09-09-2011 12:45

Re: Modern warfare 2 Mod v1.1.1b
 
Quote:

Originally Posted by BaQStiC (Post 1551336)
Someone explain to me how to install to get it working?
Wgralem all files off the server.

just read the main post!

here are the files you need:
http://forums.alliedmods.net/attachm...6&d=1315553905
http://siamx.persiangig.com/mw2_models.zip
http://www.amxmodx.org/plcompiler_vb.cgi?file_id=92235

D.Moder 09-09-2011 17:27

Re: Modern warfare 2 Mod v1.1.1b
 
update:
accidentally re-uploaded the previous version (1.1.0b) instead of the newer one (1.1.1b)
now its fixed.

*** EDIT: ANOTHER UPDATE ***
fixed c4 explosion error, last stand error
increased explosions accuracy, fixed hitmarker not showing
and some optimizations!

bluechester 09-11-2011 00:01

Re: Modern warfare 2 Mod v1.1.2b
 
How about SQL support?

bilalpro 09-11-2011 09:10

Re: Modern warfare 2 Mod v1.1.2b
 
how to get all the models?

modernwarfare 09-11-2011 09:58

Re: Modern warfare 2 Mod v1.1.2b
 
Quote:

Originally Posted by bluechester (Post 1552745)
How about SQL support?


its easy do it by your self if you want it

D.Moder 09-11-2011 14:05

Re: Modern warfare 2 Mod v1.1.2b
 
Quote:

Originally Posted by bluechester (Post 1552745)
How about SQL support?

UPDATE:
Added SQL Support.
*** reinstall mw2_files.zip *** updated .cfg and few sounds files

// SQL Vault
//
// Usage:
// 1. uncomment #include <sqlvault> in main plugin
// 2. comment #include <nvault> in main plugin
// 3. set cvar values
cod_sqlv_host "127.0.0.1"
cod_sqlv_user "root"
cod_sqlv_pass ""
cod_sqlv_db "amxx"
cod_sqlv_table "cod_mw2"

SQLVault v0.0.2
Thanks to Exolent[jNr]
INCLUDE FILE HERE:
Main post: http://forums.alliedmods.net/showthread.php?t=146849
Direct download link: http://forums.alliedmods.net/attachm...3&d=1296427114

darkheman 09-11-2011 14:44

Re: Modern warfare 2 Mod v1.2.0b
 
what is that SQL thing?
and fix flash and HE bug and the Sentry Machingun please

modernwarfare 09-11-2011 15:00

Re: Modern warfare 2 Mod v1.1.2b
 
Quote:

Originally Posted by D.Moder (Post 1553117)
UPDATE:
Added SQL Support.
*** reinstall mw2_files.zip *** updated .cfg and few sounds files

// SQL Vault
//
// Usage:
// 1. uncomment #include <sqlvault> in main plugin
// 2. comment #include <nvault> in main plugin
// 3. set cvar values
cod_sqlv_host "127.0.0.1"
cod_sqlv_user "root"
cod_sqlv_pass ""
cod_sqlv_db "amxx"
cod_sqlv_table "cod_mw2"

SQLVault v0.0.2
Thanks to Exolent[jNr]
INCLUDE FILE HERE:
Main post: http://forums.alliedmods.net/showthread.php?t=146849
Direct download link: http://forums.alliedmods.net/attachm...3&d=1296427114

i use sqlx

but good job

D.Moder 09-11-2011 15:29

Re: Modern warfare 2 Mod v1.1.2b
 
Quote:

Originally Posted by modernwarfare (Post 1553145)
i use sqlx

but good job

sqlvault is (.inc file) made from sqlx! its not a module
sqlvault adds sqlx only

wickedd 09-11-2011 15:57

Re: Modern warfare 2 Mod v1.2.0b
 
I just tried to use sqlvault and I got this error

Code:

[AMXX] Plugin ("cod_mw2_mod.amxx") is setting itself as failed.
[AMXX] Plugin says: Error opening nVault
[AMXX] Run time error 1 (plugin "cod_mw2_mod.amxx") - forced exit


modernwarfare 09-11-2011 16:49

Re: Modern warfare 2 Mod v1.2.0b
 
Code:

#include <sqlx>

new Host[]    = ""
new User[]    = ""
new Pass[]    = ""
new Db[]    = ""
new Handle:g_SqlTuple
new g_Error[512]


public plugin_init()
{
    set_task(1.0, "MySql_Init");
}

public MySql_Init()
{
    g_SqlTuple = SQL_MakeDbTuple(Host,User,Pass,Db)
   
    new ErrorCode,Handle:SqlConnection = SQL_Connect(g_SqlTuple,ErrorCode,g_Error,charsmax(g_Error))
    if(SqlConnection == Empty_Handle)
    {
        set_fail_state(g_Error)
    }
    new Handle:Queries
    Queries = SQL_PrepareQuery(SqlConnection,"CREATE TABLE IF NOT EXISTS mw2 (steamid varchar(32), rank TEXT(11), points INT(11), class INT(11))")
   
    if(!SQL_Execute(Queries))
    {
        SQL_QueryError(Queries,g_Error,charsmax(g_Error))
        set_fail_state(g_Error) 
    }
   
    SQL_FreeHandle(Queries)
    SQL_FreeHandle(SqlConnection) 
}

public plugin_end()
{
    SQL_FreeHandle(g_SqlTuple)
}

public LoadData(id)
{
    new ErrorCode,Handle:SqlConnection = SQL_Connect(g_SqlTuple,ErrorCode,g_Error,charsmax(g_Error))
   
    if(g_SqlTuple == Empty_Handle)
        set_fail_state(g_Error)
       
    new szSteamId[32], szTemp[512]
    get_user_authid(id, szSteamId, charsmax(szSteamId))
   
    new Data[1]
    Data[0] = id

    format(szTemp,charsmax(szTemp),"SELECT * FROM `mw2` WHERE (`mw2`.`steamid` = '%s')", szSteamId)
    SQL_ThreadQuery(g_SqlTuple,"register_client",szTemp,Data,1)
    SQL_FreeHandle(SqlConnection)
}

public register_client(FailState,Handle:Query,Error[],Errcode,Data[],DataSize)
{
    if(FailState == TQUERY_CONNECT_FAILED)
    {
        log_amx("Load - Could not connect to SQL database.  [%d] %s", Errcode, Error)
    }
    else if(FailState == TQUERY_QUERY_FAILED)
    {
        log_amx("Load Query failed. [%d] %s", Errcode, Error)
    }
    new id = Data[0]
   
    if(SQL_NumResults(Query) < 1)
    {
       
        new szSteamId[32]
        get_user_authid(id, szSteamId, charsmax(szSteamId))
       
        if (equal(szSteamId,"ID_PENDING"))
            return PLUGIN_HANDLED;
           
        new szTemp[512]
       
        new ErrorCode,Handle:SqlConnection = SQL_Connect(g_SqlTuple,ErrorCode,g_Error,charsmax(g_Error))
        if(g_SqlTuple == Empty_Handle)
            set_fail_state(g_Error)

        format(szTemp,charsmax(szTemp),"INSERT INTO `mw2`(`steamid`, `rank`, `points`, `class`) VALUES ('%s', '0', '0', '0')", szSteamId)
        SQL_ThreadQuery(g_SqlTuple,"IgnoreHandle",szTemp)
        server_print("seach information ")
        SQL_FreeHandle(SqlConnection)
    }
    else
    {

        player_rank[id] = SQL_ReadResult(Query, 1)
        player_points[id] = SQL_ReadResult(Query, 2)
        player_class[id] = SQL_ReadResult(Query, 3)
        server_print("read the result ")
    }
    return PLUGIN_CONTINUE;



public IgnoreHandle(FailState,Handle:Query,Error[],Errcode,Data[],DataSize)
{
    SQL_FreeHandle(Query)
    return PLUGIN_HANDLED;
}

public SaveData(id)
{
    new ErrorCode,Handle:SqlConnection = SQL_Connect(g_SqlTuple,ErrorCode,g_Error,511)
    if(g_SqlTuple == Empty_Handle)
        set_fail_state(g_Error)
 
    new szSteamId[32], szTemp[512]
    get_user_authid(id, szSteamId, charsmax(szSteamId))
   
    format(szTemp,charsmax(szTemp),"UPDATE `mw2` SET `rank` = '%d' , `points` = '%d' , `class` = '%d' WHERE `mw2`.`steamid` = '%s';", player_rank[id],  player_points[id], player_class[id], szSteamId)
    SQL_ThreadQuery(g_SqlTuple,"IgnoreHandle",szTemp)
    SQL_FreeHandle(SqlConnection);
}

here i made this code it uses sqlx

i hope you add it

D.Moder 09-11-2011 17:38

Re: Modern warfare 2 Mod v1.2.0b
 
disable the XACCURATE feature
//#define XACCURATE

wickedd 09-11-2011 18:13

Re: Modern warfare 2 Mod v1.2.0b
 
Quote:

Originally Posted by wickedd (Post 1553188)
I just tried to use sqlvault and I got this error

Code:

[AMXX] Plugin ("cod_mw2_mod.amxx") is setting itself as failed.
[AMXX] Plugin says: Error opening nVault
[AMXX] Run time error 1 (plugin "cod_mw2_mod.amxx") - forced exit


Quote:

Originally Posted by D.Moder (Post 1553269)
disable the XACCURATE feature
//#define XACCURATE

I'm getting the same error:
Code:

[AMXX] Plugin ("cod_mw2_mod.amxx") is setting itself as failed.
[AMXX] Plugin says: Error opening nVault
[AMXX] Run time error 1 (plugin "cod_mw2_mod.amxx") - forced exit

Also when I'm playing map de_dust and I jump from the sniper nest the game will freeze.

D.Moder 09-11-2011 19:48

Re: Modern warfare 2 Mod v1.2.0b
 
I'm closing/removing this, there is some error that crashes the server and I can't find it because it just suddenly closes the server window, and I can't see the error.
I do want to continue, but I'm just stuck.

*** remove this plugin ***

mattisbogus 09-11-2011 22:04

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
ahh man that sucks but i am glad it wasn't just me. I could never run very long without the server crashing. Sometimes it would say because mp.dll other times because fakemeta_amx.dll and sometimes just unknown. I even stripped the server of scavenger/health packs, grenaded launchers, semtex/frags, and even tried different methods of stripping weapons and respawning and still it would eventually crash without an error. Shame man you did an excellent job :(

D.Moder 09-11-2011 22:43

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
@mattisbogus
thanks man
now the only people who can save this mod from going down, is the amx moderators/plugin approvers.
I'm pretty sure it's just 1 freaking function/stock is messing it up, but I have over 100 functions in there!

modernwarfare 09-11-2011 23:56

Re: Modern warfare 2 Mod v1.2.0b
 
Quote:

Originally Posted by D.Moder (Post 1553325)
I'm closing/removing this, there is some error that crashes the server and I can't find it because it just suddenly closes the server window, and I can't see the error.
I do want to continue, but I'm just stuck.

*** remove this plugin ***

that was too fast


i started my xp mod before you but you quit your plugin before me

wickedd 09-12-2011 00:03

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
I think he started his plugin before you. He wrote his plugin, you copied and paste yours, that's a big difference.

@D.Moder

Don't give up. It's a good plugin, just has a few bugs.

modernwarfare 09-12-2011 00:06

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Quote:

Originally Posted by wickedd (Post 1553399)
I think he started his mod before you. He wrote his mod, you copied and paste yours, that's a big difference.

@D.Moder

Don't give up. It's a good plugin, just has a few bugs.


hahhaha nub you cant even do better?


And dont worry i rewrote the codes

so take that

lazarev 09-12-2011 00:49

Re: Modern warfare 2 Mod v1.2.0b
 
Quote:

Originally Posted by D.Moder (Post 1553325)
I'm closing/removing this, there is some error that crashes the server and I can't find it because it just suddenly closes the server window, and I can't see the error.
I do want to continue, but I'm just stuck.

*** remove this plugin ***

you're such a pussy :mrgreen:

vaan123 09-12-2011 01:20

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
bull :p

D.Moder 09-12-2011 01:38

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Quote:

Originally Posted by lazarev (Post 1553412)
you're such a pussy :mrgreen:

Quote:

Originally Posted by vaan123 (Post 1553425)
bull :p

the only way i can fix this is getting a little help debugging this
i'm sure it's only 1 fucking line is fucking this up
but this is 6000 line code, im tired! 6000 fucking line code do you understand ???

edit: and none of the moderators/plugin approvers talk to me ever, they never respond to any of my questions
this forum seems dead to me! everyone is dead

modernwarfare 09-12-2011 01:43

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Quote:

Originally Posted by D.Moder (Post 1553432)
the only way i can fix this is getting a little help debugging this
i'm sure it's only 1 fucking line is fucking this up
but this is 6000 line code, im tired! 6000 fucking line code do you understand ???


man dont give up!!

Preyas3 09-12-2011 07:29

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
:O

mattisbogus 09-12-2011 13:13

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Quote:

Originally Posted by D.Moder (Post 1553376)
@mattisbogus
thanks man
now the only people who can save this mod from going down, is the amx moderators/plugin approvers.
I'm pretty sure it's just 1 freaking function/stock is messing it up, but I have over 100 functions in there!

Yeah this mod is pretty substantial compared to the ones I've looked at before. I tried to think of the biggest functions and stop/change them to see if I saw change, and I still wasn't able to stop it.

It's really strange though because the crash is very random. Sometimes it will crash 3 mins after starting, and other times I can go 3-4 hrs. It seems to me the crash is a specific instance and is the reason why it's so random because it takes some time for that specific instance to occur. I just wish I could find it!

I even tried recording with HLTV and then going back 5 secs before the crash, and it seems 8 times out of 10, the crash would occur right after a nade was used/thrown. This is why I stopped martyrdom/semtex/frag/scavenger packs, but I never did stop flashbangs, but I doubt that is the reason for the crash.

Xellath 09-12-2011 13:37

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Quote:

Originally Posted by D.Moder (Post 1553432)
the only way i can fix this is getting a little help debugging this
i'm sure it's only 1 fucking line is fucking this up
but this is 6000 line code, im tired! 6000 fucking line code do you understand ???

edit: and none of the moderators/plugin approvers talk to me ever, they never respond to any of my questions
this forum seems dead to me! everyone is dead

Then debug it? I'm sure there are plenty of people here willing to help, as long as you just ask. If you drop support for your plugin, even though it's 6000 lines long, what was the point of releasing it in the first place? Take a look at Emps PokeMod; it's over 15k lines of code - and he spent quite some time debugging. Don't drop your support, don't rush things, just take your time and try to figure out the problem.

This forum is far from dead. Setup a thread in scripting help and you'll get some help, no doubt about that.

Nomaf 09-12-2011 14:34

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Just ask on the polish support site. Of course in english. There are many of helpful people.
Really!
http://amxx.pl/

Many people will wait to your final release ;)

PS. Sorry for my bad english. If there is any error in my post, just ignore it.

B3N4K 09-12-2011 15:11

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
Xellath is right. This forum is far from dead. Every time i needed help with anything i got it. Just ask for it in proper section and i am sure they won't just ignore you! It would be pity to leave this plugin unfinished just because of this problem. Once i was trying to solve problem in my code for ONE WHOLE day but at the end i found it and fixed it and now it works perfectly.

Just don't give up, you already did a lot of work on this plugin. Don't throw it out of the window just because of this ;)

At first you should try to identify when does the server crash. Get some friends and play. And then when server crash ask them what were they doing at the moment the server crashed. Where they were standing. What did they did earlier that round. This is scripting language. It's just hooking to their behaviour. There must be way how to find out. You maybe won't get line, but you could find out in what part you should look for and then it will be easy to find the problem.. Commenting piecies of code, trying to crash server again with different code.. For me it's almost best part of programming.. It's just like detective story. There is some bad piece of code killing your server all over and over again. :D :D :D :D ;)

There is always the way.

Xellath 09-12-2011 16:11

Re: Modern warfare 2 Mod v1.2.0b (delete this)
 
It's simple really. Debug just about everything and you'll have no problem finding whats wrong. As said before, no need to rush - it takes time. It can be very time-consuming, but don't let your work go to waste.

D.Moder 09-13-2011 14:43

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
UPDATE:
FIXED SERVER CRASH
it took me 3 days to find the bug
it was (get_pdata_int CSTEAM) crashing my server

wickedd 09-13-2011 15:01

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
Good job :up:. I'm happy you didn't give up on this project.

mattisbogus 09-13-2011 15:03

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
Quote:

Originally Posted by wickedd (Post 1554577)
Good job :up:. I'm happy you didn't give up on this project.

Me too!

Very much appreciate your time & effort in trying to fix the problem. I will begin testing immediately.

Korxu 09-13-2011 15:05

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
Very good job! Congratulations!

D.Moder 09-13-2011 15:42

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
thanks everybody, you guys gave me energy! :)

vaan123 09-13-2011 18:26

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
good mod, good plugin, good all. thanks. :)

mabaclu 09-14-2011 09:23

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
Nice effort in fixing the issue. Good job

SGT 09-14-2011 18:53

Re: Modern warfare 2 Mod v1.3.0b (FIXED SERVER CRASH)
 
LOVE IT!! But, when you press your right mouse key to switch aiming modes it doesn't let you shoot for 2-4secs. I'm not sure if this is a bug or if it's intentional. If it's the latter, can you make it so that we can change it to no lag at all?

Another request, on the killstreak menu, can you make it so that #1 on the menu is "ok"? Not alot of people know that they have to go to the 2nd page and press ok. Most of them just click 9 (exit) after picking up the killstreak rewards they want.

D.Moder 09-14-2011 19:08

Re: Modern warfare 2 Mod v1.3.1b
 
UPDATE:
1.3.1.b: replaced sqlVault with sqlx (no additional .inc needed), replaced cvars with a customization file.
"cstrike\addons\amxmodx\configs\cod_mw2.i ni"

@SGT
thanks for trying my mod
I'll fix those soon.

SGT 09-14-2011 19:50

Re: Modern warfare 2 Mod v1.3.1b
 
Another 2 suggestions.

1- In the M menu, add "Change team". I couldn't change teams because M is the default change key, and now there is a menu in it's place. Which I love, but there still should be an option for team change.

2- New T models. I like the ones you have, but they look too similar to the CT model. I was camping next to an enemy and we both thought we were in the same team. LOL.

Also, the reason there is lag when you switch aim mode or when you zoom in is beacause behind the skin you're putting on the silencer, so I'm not sure if you could fix that?/!


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

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