PDA

View Full Version : Looking for help: Creating a new WoD extension



KaviCordi
April 13th, 2013, 08:57
My players are hoping for something new for our next game, and I've (foolishly) agreed to give it a go. I've already got the essentials of the system figured out, it's just a matter of figuring out how to make this all work in FG.

Before I can even get to the point where I can start working on the hard part, FG has started giving me trouble. In this case, it believes it's missing a "}", yet Notepad++, myself, and a friend I asked to double-check it can't see the apparently "missing" expected bracket.

So, here's the Console:

Runtime Notice: Reloading ruleset
Script Error: [string "hacker.lua"]:48: '}' expected (to close '{' at line 2) near 'CombatPanels'

And the code:

local GameLine =
{ Name= "Hacker",
FullName = "Hacker: The Elite",
MoralityTitle = "UNDETERMINED",
FactionTitle = "UNDETERMINED",
GroupTitle = "Homegroup",
CSLogo = "hacker_button",
FullLogo = nil,
Skills =
{ [1] = {Name="Academics", Type="Mental", Untrained=-3},
[2] = {Name="Computer", Type="Mental", Untrained=-3},
[3] = {Name="Crafts", Type="Mental", Untrained=-3},
[4] = {Name="Investigation", Type="Mental", Untrained=-3},
[5] = {Name="Medicine", Type="Mental", Untrained=-3},
[6] = {Name="Occult", Type="Mental", Untrained=-3},
[7] = {Name="Politics", Type="Mental", Untrained=-3},
[8] = {Name="Science", Type="Mental", Untrained=-3},
[9] = {Name="Athletics", Type="Physical", Untrained=-1},
[10] = {Name="Brawl", Type="Physical", Untrained=-1},
[11] = {Name="Drive", Type="Physical", Untrained=-1},
[12] = {Name="Firearms", Type="Physical", Untrained=-1},
[13] = {Name="Larceny", Type="Physical", Untrained=-1},
[14] = {Name="Stealth", Type="Physical", Untrained=-1},
[15] = {Name="Survival", Type="Physical", Untrained=-1},
[16] = {Name="Weaponry", Type="Physical", Untrained=-1},
[17] = {Name="Animal Ken", Type="Social", Untrained=-1},
[18] = {Name="Empathy", Type="Social", Untrained=-1},
[19] = {Name="Expression", Type="Social", Untrained=-1},
[20] = {Name="Intimidation", Type="Social", Untrained=-1},
[21] = {Name="Persuasion", Type="Social", Untrained=-1},
[22] = {Name="Socialize", Type="Social", Untrained=-1},
[23] = {Name="Streetwise", Type="Social", Untrained=-1},
[24] = {Name="Subterfuge", Type="Social", Untrained=-1}
},
CharSheet =
{ Frame = "avatar_sheet",
TabControl = "charsheet_tabs",
Tabs =
{ [1] = {Name="main", Template="charsheet_main", Icon="tab_main"},
[2] = {Name="other", Template="charsheet_other", Icon="tab_other"},
[3] = {Name="special", Template="avatar_special", Icon="tab_special"},
[4] = {Name="system", Template="avatar_system", Icon="tab_system"},
[5] = {Name="notes", Template="charsheet_notes", Icon="tab_notes"},
Activate = 1
}
},
NPCSheet = nil
CombatPanels = nil
}; --Supposedly missing bracket, line 49

function onInit()
LineManager.register(GameLine,false);
end

Because I know only enough about coding to stitch this together, I'm using the existing extensions for WoD as starting points and learning guides. If anyone, especially someone who knows more about this than me, can help, I would be very appreciative.

Griogre
April 14th, 2013, 00:53
Looks like to me you need a comma after NPCSHeet = nil

S Ferguson
April 14th, 2013, 02:07
Yep. It's not that FG is complaining about your bracket, it's more that it expects it in a different place. Putting a comma after "NPCSheet = nil" should get FG to recognise the bracket in its proper place.

KaviCordi
April 14th, 2013, 07:00
Aha! Looking at all the other lines in the documents, I'm starting to realize that was probably an obvious mistake. ^^;

Thank you both for that!