Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2014-09-18 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
September 18, 2014, 07:42:33 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://ownageclan.com/jenkins/job/War3Source-Default1/
WIKI page: http://ownageclan.com/wiki/index.php/Main_Page
War3Source GIT repo: https://github.com/War3Source/War3Source
War3Source servers: http://www.game-monitor.com/search.php?vars=a_war3_version=
War3Source Function Reference: http://ownageclan.com/war3source/functionreference/?search=player
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Help me pls.  (Read 110 times)
@Hojjke
Newbie
*
Posts: 48


In my view, you shouldn't know my view.


View Profile
« on: September 15, 2014, 08:28:16 AM »

I was standing on an early version of war3source till the last CS:GO update, whick broke the version of ~July2013. Now I downloaded the latest version of war3 from SVN. And got this errors on logs all the time, for ex:
L 09/15/2014 - 18:16:08: [SM] Displaying call stack trace for plugin "races/War3Source_204_UnholyEntity.smx":
L 09/15/2014 - 18:16:08: [SM]   
  •   Line 58, C:\Users\Никита\Desktop\W3S\War3Source_204_UnholyEntity.sp::OnWar3LoadRaceOrItemOrdered()
L 09/15/2014 - 18:16:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/15/2014 - 18:16:08: [SM] Native "GetNativeCell" reported: Invalid parameter number: 3
L 09/15/2014 - 18:16:08: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 09/15/2014 - 18:16:08: [SM]   
  •   Line 606, C:\Users\Nikita\Desktop\scripting\War3Source_Engine_RaceClass.sp::NWar3_CreateNewRace()
L 09/15/2014 - 18:16:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/15/2014 - 18:16:08: [SM] Native "War3_CreateNewRace" reported: Error encountered while processing a dynamic native
L 09/15/2014 - 18:16:08: [SM] Displaying call stack trace for plugin "races/War3Source_Neptunia.smx":
L 09/15/2014 - 18:16:08: [SM]   
  •   Line 159, C:\Users\НиКоТиН\Desktop\Races-master\Compiling\War3Source_Neptunia.sp::OnWar3LoadRaceOrItemOrdered()
L 09/15/2014 - 18:16:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/15/2014 - 18:16:08: [SM] Native "GetNativeCell" reported: Invalid parameter number: 3
L 09/15/2014 - 18:16:08: [SM] Displaying call stack trace for plugin "w3s/War3Source_Engine_RaceClass.smx":
L 09/15/2014 - 18:16:08: [SM]   
  •   Line 606, C:\Users\Nikita\Desktop\scripting\War3Source_Engine_RaceClass.sp::NWar3_CreateNewRace()
L 09/15/2014 - 18:16:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/15/2014 - 18:16:08: [SM] Native "War3_CreateNewRace" reported: Error encountered while processing a dynamic native
L 09/15/2014 - 18:16:08: [SM] Displaying call stack trace for plugin "races/War3Source_Enigma.smx":
L 09/15/2014 - 18:16:08: [SM]   
  •   Line 140, C:\Users\Никита\Desktop\sourcemod\scripting\War3Source_Enigma.sp::OnWar3LoadRaceOrItemOrdered2()
L 09/15/2014 - 18:16:08: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/15/2014 - 18:16:08: [SM] Native "GetNativeCell" reported: Invalid parameter number: 3

Could u help me?
Logged

Revan
Sr. Member
****
Posts: 444



View Profile
« Reply #1 on: September 15, 2014, 10:41:05 AM »

blame El Diablo, he broke ABI backwards compatibility out of the blue.
Fix: Recompile all races.
Logged

#war3source on gamesurge
-El Diablo
Hero Member
*****
Posts: 545


View Profile
« Reply #2 on: September 15, 2014, 10:56:34 AM »

blame El Diablo, he broke ABI backwards compatibility out of the blue.
Fix: Recompile all races.

The other fix would be easy to.. to check the numParams before trying to "GetNativeCell".

public NWar3_CreateNewRace(Handle:plugin,numParams){
decl String:name[64],String:shortname[16];
GetNativeString(1,name,sizeof(name));
GetNativeString(2,shortname,sizeof(shortname));
new ReloadRaceId_info = 0;
if(numParams>2)
{
  ReloadRaceId_info=GetNativeCell(3);
}
War3_LogInfo("add race %s %s",name,shortname);
return CreateNewRace(name,shortname,ReloadRaceId_info);
}


I'll update this later .. either tonight or tomorrow morning.. unless someone else does it.
« Last Edit: September 15, 2014, 10:58:13 AM by -El Diablo » Logged
@Hojjke
Newbie
*
Posts: 48


In my view, you shouldn't know my view.


View Profile
« Reply #3 on: September 15, 2014, 12:40:37 PM »

Thx, it helped.
« Last Edit: September 16, 2014, 12:32:07 PM by @Hojjke » Logged

-El Diablo
Hero Member
*****
Posts: 545


View Profile
« Reply #4 on: September 15, 2014, 10:29:51 PM »

Thx, it's helped.

By the way, which fix did you use?   Recompiling your race or something else?
Logged
@Hojjke
Newbie
*
Posts: 48


In my view, you shouldn't know my view.


View Profile
« Reply #5 on: September 16, 2014, 12:32:50 PM »

Thx, it's helped.

By the way, which fix did you use?   Recompiling your race or something else?

blame El Diablo, he broke ABI backwards compatibility out of the blue.
Fix: Recompile all races.

The other fix would be easy to.. to check the numParams before trying to "GetNativeCell".

public NWar3_CreateNewRace(Handle:plugin,numParams){
decl String:name[64],String:shortname[16];
GetNativeString(1,name,sizeof(name));
GetNativeString(2,shortname,sizeof(shortname));
new ReloadRaceId_info = 0;
if(numParams>2)
{
  ReloadRaceId_info=GetNativeCell(3);
}
War3_LogInfo("add race %s %s",name,shortname);
return CreateNewRace(name,shortname,ReloadRaceId_info);
}


I'll update this later .. either tonight or tomorrow morning.. unless someone else does it.


This one.
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!