Jump to content
  • 0

1.0.5 rpt bug with mission loot table


MGT

Question

Getting this in my .rpt (stock loot_init.sqf file) when using mission loot config

 0:17:51 Error in expression <eight = round ((_itemChances select _l) * 100);
for "_k" from 0 to (_weight - 1)>
 0:17:51   Error position: <* 100);
for "_k" from 0 to (_weight - 1)>
 0:17:51   Error *: Type Array, expected Number
 0:17:51 File mpmissions\DayZ_Epoch_11.Chernarus\extras\custom_loot\init\loot_init.sqf, line 85

Mission file loads, moves onto spawn screen but server doesn't load client into game.

Link to comment
Share on other sites

Recommended Posts

  • 0

Cheers MGT. Will try when home and then if working, edit them

No call in .hpp/.cfg files etc. Those type of files only accept processor commands. call/Spawn/execVM/compile is for .sqf (script files). You must use #include "LootConfig.hpp"

You'll have to excuse my amateur definitions. A processor command is what I meant, but in my mind it's a call. I've been using the same command in description as I did successfully in 1.0.4.2

#include "loottables\CfgBuildingLoot.hpp"
Link to comment
Share on other sites

  • 0

HI MGT, I used your new loot table hpp's but still get the error on server start like your first post...:

 

 8:27:47 Error in expression <eight = round ((_itemChances select _l) * 100);
for "_k" from 0 to _weight - 1 d>
 8:27:47   Error position: <* 100);
for "_k" from 0 to _weight - 1 d>
 8:27:47   Error *: Type String, expected Number
 8:27:47 File mpmissions\__cur_mp.Chernarus\extras\custom_loot\init\loot_init.sqf, line 62
 
Looks like that line in the loot_init.sqf needs modifying too...?
Link to comment
Share on other sites

  • 0

 

HI MGT, I used your new loot table hpp's but still get the error on server start like your first post...:

 

 8:27:47 Error in expression <eight = round ((_itemChances select _l) * 100);
for "_k" from 0 to _weight - 1 d>
 8:27:47   Error position: <* 100);
for "_k" from 0 to _weight - 1 d>
 8:27:47   Error *: Type String, expected Number
 8:27:47 File mpmissions\__cur_mp.Chernarus\extras\custom_loot\init\loot_init.sqf, line 62
 
Looks like that line in the loot_init.sqf needs modifying too...?

 

 

These are just the tables, everything else needs to be updated, re edit the Epoch 105 files from the dayz_code.pbo

Link to comment
Share on other sites

  • 0

I'm now gettting a problem where I get stuck at the loadscreen with the counter just increasing before bombing me back to the lobby. This is the error in my rpt:

 9:20:03 "get: STRING (23xxxxx98), sent: STRING (23xxxxx98)"
 9:20:03 "DISCONNECT: BaroN (23xxxxx98) Object: B 1-1-A:3 (BaroN) REMOTE, _characterID: 0 at loc [-7245.98,19534.9,1.18701]"
 9:20:03 "ERROR: Cannot Sync Character BaroN as no characterID"
 
Can anyone help...?
 
EDIT: This is the same for all players trying to connect.
Link to comment
Share on other sites

  • 0

sorted, was something to do with having mutiple 'if (!isDedicated) then' in my mission init. Which I had for 2 scripts:

Service point

Lights

 

Have moved both outside of !isDedicated and service point seems to work fine, some lights work (street lights) but, not all (illumination towers)....

Link to comment
Share on other sites

  • 0

why are you guys copying over loot_init.sqf?

 

It already has all the necessary code in it to use mission loot tables...

if (DZE_MissionLootTable) then {
	_config = missionConfigFile >> "CfgBuildingLoot";
} else {
	_config = configFile >> "CfgBuildingLoot";
};
Link to comment
Share on other sites

  • 0

 

why are you guys copying over loot_init.sqf?

 

It already has all the necessary code in it to use mission loot tables...

if (DZE_MissionLootTable) then {
	_config = missionConfigFile >> "CfgBuildingLoot";
} else {
	_config = configFile >> "CfgBuildingLoot";
};

 

 

You only need to set DZE_MissionLootTable = true; in the init.sqf am I right?

I thought it was so you could customise the loot....that's why I did it..

Link to comment
Share on other sites

  • 0

I have a new error now which maybe related to the array issue but is to do with loot in WAI

 

12:52:46 "_iClass isNil, exiting loot spawn!"
12:52:46 Error in expression <s select _index;
_itemType = _itemTypes select _index;
[_itemType select 0, _ite>
12:52:46   Error position: <select _index;
[_itemType select 0, _ite>
12:52:46   Error Zero divisor
12:52:46 File z\addons\dayz_server\WAI\missions\missions\crash_spawner.sqf, line 73
 
Can anyone help with this?
 
Thanks
Link to comment
Share on other sites

  • 0

To add custom loot tables you only need to do the following:

 

  1. open description.ext and add the following line under enableItemsDropping = 0;
    • #include "YOURPATHTO\CfgBuildingLoot\CfgBuildingLoot.hpp"
  2. open init.sqf and add the following epoch variable
    • DZE_MissionLootTable = true;
  3. download these files and place them in your mission pbo (make sure to update the path above in description.ext!)

 

Then edit away!

Link to comment
Share on other sites

  • 0

To add custom loot tables you only need to do the following:

 

  1. open description.ext and add the following line under enableItemsDropping = 0;
    • #include "YOURPATHTO\CfgBuildingLoot\CfgBuildingLoot.hpp"
  2. open init.sqf and add the following epoch variable
    • DZE_MissionLootTable = true;
  3. download these files and place them in your mission pbo (make sure to update the path above in description.ext!)

 

Then edit away!

Thanks Cen.

Link to comment
Share on other sites

  • 0

the latest problem I'm having is that normal players can't access the trader menus. When they select trader menu, the menu appears but then quickly flashes off instantly before they can click on any of the lists.

 

This isn't happening to admins though.....I have installed the latest infiSTAR update that came through today that's tested for 105.

 

Anyone else getting this...have I missed something daft again.... 

Link to comment
Share on other sites

  • 0

the latest problem I'm having is that normal players can't access the trader menus. When they select trader menu, the menu appears but then quickly flashes off instantly before they can click on any of the lists.

 

This isn't happening to admins though.....I have installed the latest infiSTAR update that came through today that's tested for 105.

 

Anyone else getting this...have I missed something daft again.... 

 

Toggle close dialogues in ahconfig

Link to comment
Share on other sites

  • 0

the latest problem I'm having is that normal players can't access the trader menus. When they select trader menu, the menu appears but then quickly flashes off instantly before they can click on any of the lists.

 

This isn't happening to admins though.....I have installed the latest infiSTAR update that came through today that's tested for 105.

 

Anyone else getting this...have I missed something daft again.... 

while writing this, I have just seen that 1.0.5.1 is available...! Does that mean this issue will be fixed? Nothing in the changelog about it....

 

Will we get some easy instructions for those that have already gone to 105?

Link to comment
Share on other sites

  • 0

So I got my server up and running followed all instructions and I have tried to use 3 different loot tables so far and none of them will work, No loot will spawn, and my server is extremely laggy now, like almost unplayable with 2 people on it. I just installed 1.0.5.1.

RPT error

9:32:57 Error in expression <nd (((_itemChances select _l) select 1) * 100);
for "_k" from 0 to (_weight - 1)>
9:32:57 Error position: <* 100);
for "_k" from 0 to (_weight - 1)>
9:32:57 Error *: Type String, expected Number
9:32:57 File z\addons\dayz_code\init\loot_init.sqf, line 85

I realize this is from the new loot format, but as I said above when I use the proper loot tables my game is literally unplayable with lag and no over watch loot spawns let alone cans of beans, I have seen key maker kits and maps. . . .Any advice would be great homies.

RPT error while I am lagging out, found a few sargeAI, DZMS, errors as well but don't see how that would affect loot spawning in.

11:11:46 Error in expression <find _iClass;
_weights = dayz_CLChances select _index;
_cntWeights = count _weig>
11:11:46   Error position: <select _index;
_cntWeights = count _weig>
11:11:46   Error Zero divisor
11:11:46 File z\addons\dayz_server\init\server_functions.sqf, line 362

Link to comment
Share on other sites

  • 0

These are just the tables, everything else needs to be updated, re edit the Epoch 105 files from the dayz_code.pbo

I am getting same error

 

 1:54:29 Error in expression <eight = round ((_itemChances select _l) * 100);
for "_k" from 0 to _weight - 1 d>
 1:54:29   Error position: <* 100);
for "_k" from 0 to _weight - 1 d>
 1:54:29   Error *: Type String, expected Number
 1:54:29 File z\addons\dayz_code\init\loot_init.sqf, line 75
_config = [];
if (DZE_MissionLootTable) then {
_config = missionConfigFile >> "cfgLoot";
} else {
_config = configFile >> "cfgLoot";
};

so how do I solve this ??

 

guessing here

change 

"cfgLoot" to "custom\CfgLoot.hpp"

change the path of the loot_init.sqf in variables.sqf

z\addons\dayz_code\init\loot_init.sqf

to 

call compile preprocessFileLineNumbers "custom\loot_init.sqf";

trying this way....

Link to comment
Share on other sites

  • 0

well I can load into game now. I dont think its working though

after searching 8 barracks I only found 1 ammo box  and a 357 mag 

20 zobie kills no loot

how can i increase the amount that spawns ??

 

after soo little loot spawned  I tried including CfgBuildingPos.hpp  now server wont load

 

ErrorMessage: Include file mpmissions\__cur_mp.Tavi\custom\CfgBuildingPos.hpp

 

I see MGT has all the overpoch loot  already but I cant get anything to spawn

 

 

edit..........

 

I see many other spots I need to change in loot_init.sqf

trying now 

Link to comment
Share on other sites

  • 0

I have the proper custum loot tables (the 1.05 version) , server starts without errors (except for a double thingy but that's overpoch) but except ammoboxes nothing spawns anywhere.

 

I'm using Lingor, could that be the issue? 

 

Does anyone have a working custom loot table for Overpoch ?

Link to comment
Share on other sites

  • 0

this will probably get burried but I think I have an issue with zombie loot.

 

Take a look at this: wild_zombespawner.sqf

http://pastebin.com/0MYU21uj

 

on line 54, it expects me to have a reference to "cfgVehicles" which I do not have, could this be causing issues?

 

also line 74 expects me to have cfgMagazines. which is also not defined in my custom loot files.

 

 

edit after quick testing, here is my updated wild_zombiespawner http://pastebin.com/51W3bh6J

 

overrode the default with config.

 

Before wild update, 10 zombies 0 loot.  After 8 zombies 4 had loot.  Not a big enough sample to confirm but I'm pretty sure this is a bug for us with custom loot tables.

Link to comment
Share on other sites

  • 0

I have the proper custum loot tables (the 1.05 version) , server starts without errors (except for a double thingy but that's overpoch) but except ammoboxes nothing spawns anywhere.

 

I'm using Lingor, could that be the issue? 

 

Does anyone have a working custom loot table for Overpoch ?

Look here

 

 

Try that one it worked for me

Link to comment
Share on other sites

  • 0

this will probably get burried but I think I have an issue with zombie loot.

 

Take a look at this: wild_zombespawner.sqf

http://pastebin.com/0MYU21uj

 

on line 54, it expects me to have a reference to "cfgVehicles" which I do not have, could this be causing issues?

 

also line 74 expects me to have cfgMagazines. which is also not defined in my custom loot files.

 

 

edit after quick testing, here is my updated wild_zombiespawner http://pastebin.com/51W3bh6J

 

overrode the default with config.

 

Before wild update, 10 zombies 0 loot.  After 8 zombies 4 had loot.  Not a big enough sample to confirm but I'm pretty sure this is a bug for us with custom loot tables.

 

I did a little test myself. With the default wild_spawnZombies.sqf, out of 20 zedz, 2 had loot. With your customized one, out of 20 zedz, 6 had loot. A more extensive test would need to be done, but based on those numbers, your customized one definitely spawns more loot.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...