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

War3:Source
October 24, 2012, 10:35:16 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Compiling error  (Read 1007 times)
olszak
Newbie
*
Posts: 13

I ♥ W3S


View Profile
« on: July 14, 2011, 07:08:18 PM »

Well i've got an error when i compile races.

Quote
//// War3Source_CustomRace_Zeus.sp
// War3Source_CustomRace_Zeus.sp(Cool : fatal error 120: cannot read from file: "s
ourcemod"
//
// Compilation aborted.
// 1 Error.
//
// Compilation Time: 0,08 sec
// ----------------------------------------

same with other 28 races from this pack


Please help me out solve this problem, so other can easily compile their races.
Logged

Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #1 on: July 14, 2011, 07:25:02 PM »

you did not setup the compile folder properly, please follow the video tutorial exactly
Logged

DarkEnergy
olszak
Newbie
*
Posts: 13

I ♥ W3S


View Profile
« Reply #2 on: July 14, 2011, 07:26:45 PM »

you did not setup the compile folder properly, please follow the video tutorial exactly

I do Tongue
Logged

olszak
Newbie
*
Posts: 13

I ♥ W3S


View Profile
« Reply #3 on: July 15, 2011, 03:59:19 AM »

Soo... ? What's wrong ? I use 1.2.2.6 version.
Logged

Revan
Sr. Member
****
Posts: 274



View Profile
« Reply #4 on: July 16, 2011, 07:36:40 AM »

Just fix your comile folder, sourcemod mod is missing ... you may only set up war3source content
Logged

#war3source
schmurtz
Newbie
*
Posts: 11


View Profile Email
« Reply #5 on: August 31, 2011, 12:32:19 PM »

What about that?

//// Engine_DatabaseConnect.sp
// W3SIncs/stocks_misc.inc(7) : fatal error 120: cannot read from file: "W3SIncs
/War3Source_L4D_Interface"
//
// Compilation aborted.
// 1 Error.
//
// Compilation Time: 44,72 sec
// ----------------------------------------

I did everything what the video said, exacly like it =/
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #6 on: August 31, 2011, 12:35:56 PM »

did you forget to copy W3SIncs/War3Source_L4D_Interface.inc ? are you using the lastest version for compiling?
Logged

DarkEnergy
schmurtz
Newbie
*
Posts: 11


View Profile Email
« Reply #7 on: August 31, 2011, 12:37:04 PM »

i am using the latest compiler and no its in there, looked there first, haha
Logged
Galanth
Newbie
*
Posts: 5


View Profile Email
« Reply #8 on: September 15, 2011, 10:46:59 AM »

I am having this exact same problem. I have followed the video exactly and its still coming up with that same error about not being able to read from file "WCSIncs War3Source_L4D_Interface"

Yes I have this file in the correct folder.  I am a beginner programmer so not sure if there is something wrong with that file.  Please take a look at it and see if it needs any adjustments.

/**
 * File: War3Source_L4D_Interface.inc
 * Description: Functions and stuff to make L4D specific races and whatnot
 * Author(s): Glider 
 *
 */

#include <sdktools>

#include "W3SIncs/constants"

/**
 * Returns true if a infected is making love to a client.
 *
 * Bug: If you kick the infected then this function will still return true
 * for the client until he gets properly freed from a infected attack.
 */
native bool:War3_L4D_IsHelpless(client); 

stock bool:War3_IsL4DEngine() {
   return (War3_GetGame() == Game_L4D || War3_GetGame() == Game_L4D2);
}

stock bool:War3_IsPlayerIncapped(client)
{
   if (GetEntProp(client, Prop_Send, "m_isIncapacitated", 1)) return true;
   return false;
}

stock bool:War3_IsL4DZombieEntity(iEntity) {
    if (War3_IsL4DEngine()) {
        return (War3_IsCommonInfected(iEntity) || War3_IsWitch(iEntity));
    }
   
    return false;
}

stock bool:War3_IsCommonInfected(iEntity)
{
    if(iEntity > 0 && IsValidEntity(iEntity) && IsValidEdict(iEntity))
    {
        decl String:strClassName[64];
        GetEdictClassname(iEntity, strClassName, sizeof(strClassName));
       
        return StrEqual(strClassName, "infected");
    }
    return false;
} 

stock bool:War3_IsUncommonInfected(iEntity)
{
    if(iEntity > 0 && IsValidEntity(iEntity) && IsValidEdict(iEntity))
    {
      decl String:ModelName[128];
      GetEntPropString(iEntity, Prop_Data, "m_ModelName", ModelName, sizeof(ModelName));
      
      return (StrEqual(ModelName, "models/infected/common_male_riot.mdl") ||
            StrEqual(ModelName, "models/infected/common_male_ceda.mdl") ||
            StrEqual(ModelName, "models/infected/common_male_clown.mdl") ||
            StrEqual(ModelName, "models/infected/common_male_mud.mdl") ||
            StrEqual(ModelName, "models/infected/common_male_roadcrew.mdl") ||
            StrEqual(ModelName, "models/infected/common_male_jimmy.mdl") ||
            StrEqual(ModelName, "models/infected/common_male_fallen_survivor.mdl"));
    }
    return false;
} 

stock bool:War3_IsWitch(iEntity)
{
    if(iEntity > 0 && IsValidEntity(iEntity) && IsValidEdict(iEntity))
    {
        decl String:strClassName[64];
        GetEdictClassname(iEntity, strClassName, sizeof(strClassName));
        return StrEqual(strClassName, "witch");
    }
    return false;
} 

// To check if an infected in versus hasn't spawned yet
stock bool:IsPlayerGhost(client)
{
   if (GetEntProp(client, Prop_Send, "m_isGhost", 1) == 1)
   {
      return true;
   }
   
   return false;
}

stock GetSurvivorTempHealth(client)
{
   new temphp = RoundToCeil(GetEntPropFloat(client, Prop_Send, "m_healthBuffer") - ((GetGameTime() - GetEntPropFloat(client, Prop_Send, "m_healthBufferTime")) * GetConVarFloat(FindConVar("pain_pills_decay_rate")))) - 1;
   return temphp > 0 ? temphp : 0;
}

stock SetSurvivorTempHealth(client, hp)
{
   SetEntPropFloat(client, Prop_Send, "m_healthBufferTime", GetGameTime());
   new Float:newOverheal = hp * 1.0;
   SetEntPropFloat(client, Prop_Send, "m_healthBuffer", newOverheal);
}

stock GetMaxMagSize(const String:weapon[])
{
   if (War3_IsL4DEngine())
   {
      if ((StrEqual(weapon, "weapon_rifle", false)) || (StrEqual(weapon, "weapon_rifle_sg552", false)))
      {
         return 50;
      }
      else if (StrEqual(weapon, "weapon_rifle_ak47", false))
      {
         return 40;
      }
      else if (StrEqual(weapon, "weapon_rifle_desert", false))
      {
         return 60;
      }
      else if (StrEqual(weapon, "weapon_autoshotgun", false) || StrEqual(weapon, "weapon_shotgun_spas", false))
      {
         return 10;
      }
   }
   
   return 0;
}

stock GetMaxBackupAmmo(const String:weapon[])
{
   if (War3_IsL4DEngine())
   {
      if (StrEqual(weapon, "weapon_rifle", false) || StrEqual(weapon, "weapon_rifle_ak47", false) || StrEqual(weapon, "weapon_rifle_desert", false) || StrEqual(weapon, "weapon_rifle_sg552", false))
      {
         return GetConVarInt(FindConVar("ammo_assaultrifle_max"));
      }
      else if (StrEqual(weapon, "weapon_smg", false) || StrEqual(weapon, "weapon_smg_silenced", false) || StrEqual(weapon, "weapon_smg_mp5", false))
      {
         return GetConVarInt(FindConVar("ammo_smg_max"));
      }   
      else if (StrEqual(weapon, "weapon_pumpshotgun", false) || StrEqual(weapon, "weapon_shotgun_chrome", false))
      {
         return GetConVarInt(FindConVar("ammo_shotgun_max"));
      }
      else if (StrEqual(weapon, "weapon_autoshotgun", false) || StrEqual(weapon, "weapon_shotgun_spas", false))
      {
         return GetConVarInt(FindConVar("ammo_autoshotgun_max"));
      }
      else if (StrEqual(weapon, "weapon_hunting_rifle", false))
      {
         return GetConVarInt(FindConVar("ammo_huntingrifle_max"));
      }
      else if (StrEqual(weapon, "weapon_sniper_military", false) || StrEqual(weapon, "weapon_sniper_awp", false) || StrEqual(weapon, "weapon_sniper_scout", false))
      {
         return GetConVarInt(FindConVar("ammo_sniperrifle_max"));
      }
      else if (StrEqual(weapon, "weapon_grenade_launcher", false))
      {
         return GetConVarInt(FindConVar("ammo_grenadelauncher_max"));
      }
      else if (StrEqual(weapon, "weapon_rifle_m60", false))
      {
         return 150;
      }
   }
   
   return 0;
}

#include "W3SIncs/stocks_precache"
#include "W3SIncs/stocks_misc"
Logged
Ownz
Developer
Administrator
Hero Member
*****
Posts: 2045



View Profile WWW Email
« Reply #9 on: September 15, 2011, 06:22:34 PM »

i emphasize your folder structure must be correct like the video
Logged

DarkEnergy
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!