OBBLM techincal questions getting errors SOLVED

However you play online - Java, Vassal, Email, Cyanide etc - talk about it here.
This is also the place for discussing the various tools for managing leagues, teams and so on.

Moderator: TFF Mods

Post Reply
GutRot81
Experienced
Experienced
Posts: 78
Joined: Fri Mar 11, 2016 6:04 pm

OBBLM techincal questions getting errors SOLVED

Post by GutRot81 »

Hi all,

Firstly my team creator has stopped working. i'm getting this array_to_js - FATAL ERROR: Unknown Datatype for "races[9]["players"][8]["ma"]" instead of the creator.

i've also amended some of the skills and rosters and added the goblins specials. however i tried to name the bombardier bomma and the old line wont disappear from the active rosters under the old rules tab (i've called Races). i can't for the life of me find where the line is to remove it.

TRANSLATION ERR ! position/bombardier Bombardier, Dodge, Secret Weapon, Stunty 0k
Bomma 61 6 2 3 7 Bombardier, Dodge, Secret Weapon, Stunty A GSP 40k 1
Goblin 60 6 2 3 7 Dodge, Right Stuff, Stunty A GSP 40k 16
Looney 63 6 2 3 7 Chainsaw, Secret Weapon, Stunty A GSP 40k 1
Doom Diver 67 6 2 3 7 Right Stuff, Stunty, Swoop A GSP 60k 1
Fanatic 64 3 7 3 7 Ball and Chain, No Hands, Secret Weapon, Stunty S GAP 70k 1
Ooligan 66 6 2 3 7 Dodge, Disturbing Presence, Right Stuff, Stunty, Fan Favourite A GSP 70k 1
Pogoer 62 7 2 3 7 Dodge, Leap, Stunty, Very Long Legs A GSP 70k 1
Troll 65 4 5 1 9 Loner, Always Hungry, Mighty Blow, Really Stupid, Regeneration, Throw Team-Mate S GAP 110k 2

Finally i added Timmmber and on my roster it shows for the my fling team

16 Oak
player avatar Treeman
2 6 1 10 Mighty Blow, Stand Firm, Strong Arm, Take Roots, Thick Skull, Throw Team-Mate, TIMMM-BER! 0 0 0 0 0 0 120k

however it doesn't show in the active rosters.

can anyone help please?

http://egbbl.obblm.com/

Reason: ''
Image
stowelly
Veteran
Veteran
Posts: 163
Joined: Mon Mar 27, 2017 1:07 pm

Re: OBBLM techincal questions getting errors

Post by stowelly »

the second error looks like you are missing an entry for postion/bombardier in the translations.xml in the loc folder

the first error would need a bit more debugging. im guessing you manually tried to add these races by hand instead of applying the patch thats been released for these positions?

Reason: ''
Image
GutRot81
Experienced
Experienced
Posts: 78
Joined: Fri Mar 11, 2016 6:04 pm

Re: OBBLM techincal questions getting errors

Post by GutRot81 »

Correct on the lack of patch. however the bombadier was removed from the php and the tables so should be their the line for bomma is there so i'm happy i updated the translations. also i've searched it and there is no bombadier where inputted the bomma as all i did was overwrite the existing record

Reason: ''
Image
User avatar
Vanguard
Super Star
Super Star
Posts: 922
Joined: Sun Jun 08, 2008 8:27 am
Location: Glasgow
Contact:

Re: OBBLM technical questions getting errors

Post by Vanguard »

Whenever you change the game_data file, you have to run Synchronise database with game data files from the OBBLM Core Panel. This ensures the changes you've made are loaded into the database.
If you want to change the name of a position, you should do it in the Translations.xml file rather than in game_data. The translations file controls how names ares displayed and is a better place to make the change, as there is less chance of causing issues with the database.

The javascript error on the Team Creator page looks like there's an error in the game_data file for the ninth player of the tenth race (the arrays start at 0) which would be Goblins, but there are only eight players normally. I'm guessing either you've added a ninth and the MA value is not an integer as expected, or it's expecting a ninth and not finding it as you've got a comma after the last position.

As for the update, that should be available this week. It's been rolled out to the NAF OBBLM install and will be released for wider use shortly, once documentation is complete and any issues raised by the NAF install are looked at.

Reason: ''
GutRot81
Experienced
Experienced
Posts: 78
Joined: Fri Mar 11, 2016 6:04 pm

Re: OBBLM techincal questions getting errors

Post by GutRot81 »

i cant see the issue any thoughts?

'Goblin' => array (
'other' => array (
'rr_cost' => 60000,
'icon' => 'goblin.png',
'race_id' => T_RACE_GOBLIN, # (Goblin)
),
'players' => array (
'Goblin' => array (
'ma' => 6,
'st' => 2,
'ag' => 3,
'av' => 7,
'def' => array (23, 104, 108),
'norm' => array ('A'),
'doub' => array ('G', 'S', 'P'),
'qty' => 16,
'cost' => 40000,
'icon' => 'goblin1',
'pos_id' => 60,
),
'Bomma' => array (
'ma' => 6,
'st' => 2,
'ag' => 3,
'av' => 7,
'def' => array (93, 23, 105, 108),
'norm' => array ('A'),
'doub' => array ('G', 'S', 'P'),
'qty' => 1,
'cost' => 40000,
'icon' => 'bombardier1',
'pos_id' => 61,
),
'Pogoer' => array (
'ma' => 7,
'st' => 2,
'ag' => 3,
'av' => 7,
'def' => array (3, 23, 25, 105, 108, 79),
'norm' => array ('A'),
'doub' => array ('G', 'S', 'P'),
'qty' => 1,
'cost' => 70000,
'icon' => 'goscrappa1',
'pos_id' => 62,
),
'Looney' => array (
'ma' => 6,
'st' => 2,
'ag' => 3,
'av' => 7,
'def' => array (95, 105, 108),
'norm' => array ('A'),
'doub' => array ('G', 'S', 'P'),
'qty' => 1,
'cost' => 40000,
'icon' => 'looney1',
'pos_id' => 63,
),
'Doom Diver' => array (
'ma' => 6,
'st' => 2,
'ag' => 3,
'av' => 7,
'def' => array (104, 108, 115),
'norm' => array ('A'),
'doub' => array ('G', 'S', 'P'),
'qty' => 1,
'cost' => 60000,
'icon' => 'looney1',
'pos_id' => 67,
),
'Ooligan' => array (
'ma' => 6,
'st' => 2,
'ag' => 3,
'av' => 7,
'def' => array (23, 72, 104, 108, 97),
'norm' => array ('A'),
'doub' => array ('G', 'S', 'P'),
'qty' => 1,
'cost' => 70000,
'icon' => 'looney1',
'pos_id' => 66,
),
'Fanatic' => array (
'ma' => 3,
'st' => 7,
'ag' => 3,
'av' => 7,
'def' => array (91, 100, 105, 108),
'norm' => array ('S'),
'doub' => array ('G', 'A', 'P'),
'qty' => 1,
'cost' => 70000,
'icon' => 'fanatic1',
'pos_id' => 64,
),
'Troll' => array (
'ma' => 4,
'st' => 5,
'ag' => 1,
'av' => 9,
'def' => array (99, 90, 54, 102, 103, 110),
'norm' => array ('S'),
'doub' => array ('G','A', 'P'),
'qty' => 2,
'cost' => 110000,
'icon' => 'troll1',
'pos_id' => 65,
)
)
),

Reason: ''
Image
stowelly
Veteran
Veteran
Posts: 163
Joined: Mon Mar 27, 2017 1:07 pm

Re: OBBLM techincal questions getting errors

Post by stowelly »

there are only 8 positions there, the crash is looking for a 9th, I suspect the bug is elsewhere. could probably help track it down by adding a dummy position there for the 9th.

Reason: ''
Image
GutRot81
Experienced
Experienced
Posts: 78
Joined: Fri Mar 11, 2016 6:04 pm

Re: OBBLM techincal questions getting errors

Post by GutRot81 »

ok how did u get goblins as the 10th race? i make it humans

Reason: ''
Image
GutRot81
Experienced
Experienced
Posts: 78
Joined: Fri Mar 11, 2016 6:04 pm

Re: OBBLM techincal questions getting errors SOLVED

Post by GutRot81 »

SOLVED. the two were actually linked. it had the 9th position as the ghost bombardier (which i had overtyped to bomma) so on active roster it was there as a line but withouth data hence the missing integar. I went back through the data files and changed bomma to bombardier in all bar the translations and now its all fine active roster and team creator are up.

I guess somewhere there is another active rosters data field. This is why my trees have Timmmber but the active roster data doesn't have it.

it would be good to find out where it is though

Reason: ''
Image
Post Reply