Posted March 13, 2019
I've been merging scripts and fixing conflicts and everything else seems to be working well except for the following script compilation error when trying to load the game:
Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(6344): Unexpected end of file found after '{' at line 54
Looking at the file I thought it was just a syntax error but what I thought was a fix didn't work (though I'm far from an expert), here's what I've got, any help would be much appreciated:
{
import const var itemName : name;
import const var quantity : int;
import const var informGui : bool;
import const var ids : array< SItemUniqueId >;
};
import class CInventoryComponent extends CComponent
{ <<<<<<<<<<<<*line 54*
editable var priceMult : float;
editable var priceRepairMult : float;
editable var priceRepair : float;
editable var fundsType : EInventoryFundsType;
private var recentlyAddedItems : array<SItemUniqueId>;
private var fundsMax : int;
private var daysToIncreaseFunds : int;
// FCR3 --
private var enemies : array<CGameplayEntity>;
private var highestEnemyLevel : int;
private var lastEnemyCount : int;
private var lvlCheck1,lvlCheck2 : bool;
private var emptyCheck,mapCheck : bool;
private var empty : bool;
// -- FCR3
default priceMult = 1.0;
default priceRepairMult = 1.0;
default priceRepair = 10.0;
default fundsType = EInventoryFunds_Avg;
default daysToIncreaseFunds = 5;
public function GetFundsType() : EInventoryFundsType
{
return fundsType;
}
Error [mod0000_mergedfiles]game\components\inventorycomponent.ws(6344): Unexpected end of file found after '{' at line 54
Looking at the file I thought it was just a syntax error but what I thought was a fix didn't work (though I'm far from an expert), here's what I've got, any help would be much appreciated:
{
import const var itemName : name;
import const var quantity : int;
import const var informGui : bool;
import const var ids : array< SItemUniqueId >;
};
import class CInventoryComponent extends CComponent
{ <<<<<<<<<<<<*line 54*
editable var priceMult : float;
editable var priceRepairMult : float;
editable var priceRepair : float;
editable var fundsType : EInventoryFundsType;
private var recentlyAddedItems : array<SItemUniqueId>;
private var fundsMax : int;
private var daysToIncreaseFunds : int;
// FCR3 --
private var enemies : array<CGameplayEntity>;
private var highestEnemyLevel : int;
private var lastEnemyCount : int;
private var lvlCheck1,lvlCheck2 : bool;
private var emptyCheck,mapCheck : bool;
private var empty : bool;
// -- FCR3
default priceMult = 1.0;
default priceRepairMult = 1.0;
default priceRepair = 10.0;
default fundsType = EInventoryFunds_Avg;
default daysToIncreaseFunds = 5;
public function GetFundsType() : EInventoryFundsType
{
return fundsType;
}
No posts in this topic were marked as the solution yet. If you can help, add your reply