Jump to content
  • 0

Config Trader Unknown Error: ServerTcache


Tricks

Question

Hey everyone,

 

I have a real stumper for you guys. I am using config traders on my test server and they were working just fine. All I did was change prices and now any custom items, or even our custom traders don't populate their trader items in menu. We have traders at Pobeda Dam and when u click on a category it doesn't populate. When you go to a regular trader like Stary they work, except the categories where I added items don't populate They show default lists instead.

 

So I started fresh, just added the regular default configs items and they work. I added just one category back to our Pobeda traders, created the file from scratch and it doesn't work, same problem. Here is the error that is occurring every time I try and access a modified trader.

9:53:57 Error in expression <ServerTcache_999;>
 9:53:57   Error position: <ServerTcache_999;>
 9:53:57   Error Undefined variable in expression: servertcache_999
 9:53:57 Error in expression <ServerTcache_998;>
 9:53:57   Error position: <ServerTcache_998;>
 9:53:57   Error Undefined variable in expression: servertcache_998

I have double checked the cfgServerTrader.hpp and it IS being called. I have googled this issue without luck. I even had one of the very experience members of this community try and fix it and he is stumped. Maybe if someone can link their working config trader folders I can just use them add chance the TIDS and items?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Hey everyone,

I have a real stumper for you guys. I am using config traders on my test server and they were working just fine. All I did was change prices and now any custom items, or even our custom traders don't populate their trader items in menu. We have traders at Pobeda Dam and when u click on a category it doesn't populate. When you go to a regular trader like Stary they work, except the categories where I added items don't populate They show default lists instead.

So I started fresh, just added the regular default configs items and they work. I added just one category back to our Pobeda traders, created the file from scratch and it doesn't work, same problem. Here is the error that is occurring every time I try and access a modified trader.

9:53:57 Error in expression <ServerTcache_999;>
 9:53:57   Error position: <ServerTcache_999;>
 9:53:57   Error Undefined variable in expression: servertcache_999
 9:53:57 Error in expression <ServerTcache_998;>
 9:53:57   Error position: <ServerTcache_998;>
 9:53:57   Error Undefined variable in expression: servertcache_998
I have double checked the cfgServerTrader.hpp and it IS being called. I have googled this issue without luck. I even had one of the very experience members of this community try and fix it and he is stumped. Maybe if someone can link their working config trader folders I can just use them add chance the TIDS and items?

You got DZE_ConfigTrader = true; in your init.sqf?

Link to comment
Share on other sites

  • 0

I'm getting a similar error in my server side .rpt.

 

23:39:58 Error in expression <ServerTcache_587;>
23:39:58   Error position: <ServerTcache_587;>
23:39:58   Error Undefined variable in expression: servertcache_587
23:40:00 Error in expression <ServerTcache_588;>
23:40:00   Error position: <ServerTcache_588;>
23:40:00   Error Undefined variable in expression: servertcache_588
23:40:01 Error in expression <ServerTcache_586;>
23:40:01   Error position: <ServerTcache_586;>
23:40:01   Error Undefined variable in expression: servertcache_586
23:40:03 Error in expression <ServerTcache_589;>
23:40:03   Error position: <ServerTcache_589;>
23:40:03   Error Undefined variable in expression: servertcache_589
23:40:05 Error in expression <ServerTcache_598;>
23:40:05   Error position: <ServerTcache_598;>
23:40:05   Error Undefined variable in expression: servertcache_598
23:40:07 Error in expression <ServerTcache_590;>
23:40:07   Error position: <ServerTcache_590;>
23:40:07   Error Undefined variable in expression: servertcache_590
23:40:09 Error in expression <ServerTcache_520;>
23:40:09   Error position: <ServerTcache_520;>
23:40:09   Error Undefined variable in expression: servertcache_520
23:40:12 Error in expression <ServerTcache_591;>
23:40:12   Error position: <ServerTcache_591;>
23:40:12   Error Undefined variable in expression: servertcache_591

 

I also have everything set right and have verified that the .hpp files are being used, not the database.  The servertcache numbers seem to be the class category numbers.  I've gone through all my files with a fine-tooth comb, including using Squint, which found most of my errors, but also did a full visual scan of all files using Squint.   The color coding made errors that Squint didn't identify stand out clearly.  Even so, a few got missed that threw startup errors that I fixed. 

 

The numbers in my file predominantly match the vehicle classes for my Lyepestok vehicle trader. Oddly, all menus appear to be correct.   I just don't like seeing errors because that means something is not right.  I opened up the files that had the above class entries and went through them in detail. I couldn't find anything wrong in the files or anything different in these than all the other .hpp files.

 

Any ideas?  Anyone else seen this?
 

Bob

Link to comment
Share on other sites

  • 0

I just change the part in the compiles.

// trader menu code
	if (DZE_ConfigTrader) then {
		call compile preprocessFileLineNumbers "TO_DIRECTORY\player_traderMenuConfig.sqf";

	}else{
		call compile preprocessFileLineNumbers "TO_DIRECTORY\player_traderMenuConfig.sqf";
              //call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_traderMenuHive.sqf";

	};

And in the init.sqf i changed 

DZE_ConfigTrader = false;

No more errors but then there is insufficient stock in traders!!  

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...