View Full Version : Where to get the help I need? Altering BRP for this...
Magnatude
February 24th, 2011, 17:47
Hi Everyone, I'm very new at Fantasy Grounds and I bought BRP in hopes to be able to convert my Home-brew game system to FG.
I know of the BRP Wiki and I'm looking for more information on altering BRP.
(And some scripting help if there is someone available?)
My System is all D6 rolls, no other dice are used. I have uploaded an Example character sheet that I created with a Character sheet maker, and filled it in with the basics so people reading this have some idea of how the character works.
So is BRP the thing for me to use?
I will need to re-arrange hit locations to use a 2D6 roll: (the 2D6 can be altered with an Aim-high +1, or +2 during HtH Combat)
Roll 2D6.....Location
2-3.............Leg
4-5............Thigh
6.............Abdomen
7...............Chest
8-9.............Arm
10-11.......Shoulder
12+.............Head
So I think from what I'm reading, that these hit locations need to be scripted.
There will be others for Vehicle locations, Alien critters and such.
The Genre is SciFi Semi-Anime Style... Lots of Spaceship Interaction
https://scirpg.com/studio/wp-content/uploads/2009/02/page.png
https://scirpg.com/studio/wp-content/uploads/2009/02/combo2.png
The setting uses Electric/Plasma Universe Theory (inspired by James P Hogan novels, RIP)
If Anyone is able to point me to the right locations of altering stuff, or giving me a hand somewhat? I can trade off help with Artwork if you need it.
~~Richard~~
Sorcerer
February 24th, 2011, 18:11
I can't say that this will be an easy project for you, but I think if it can be done, then the BRP ruleset is the one to start with, since it is the only one I know of that uses hit locations.
StuartW designed the ruleset to be (relatively speaking) easy to alter/upgrade. and the hit location templates are one of the things he set up to be customizable. They are located in the brpscript.lua file in the gameline\scripts folder of the ruleset.
That said changing the hit locations is one thing, coding it so that hit rolls (and all other rolls) are made using 2d6 instead of a d20's or d100's will be much more challenging...
Magnatude
February 24th, 2011, 18:31
Thanks I will check out that lua file, its at least a place to start. I'm not a "scripter" by any means, but I have been able to root out and modify things I need in other scripting languages with some success, messy at times but gets the job done....
Post edit: ok I've located the die-rolling switch for the BRPHitLocation in the Global.lua
Hey guys, mods, is it ok that I post all of my scripting edits here for others to use? Some of you guys might be able to point out some errors that I might commit, lol
The stuff in the script you mentioned looks straight-forwards, and it did help me in getting someplace :)
Also I took the PAK file and unzipped it... then put the whole folder she-bang into the Application Data...Fantasy Grounds II... rulesets. And renamed the folder "Basic Roleplaying SciRPG Edition"
And I'll modify everything in this "testing" folder. (I hope that is a correct thing to do??) I'll keep track of my modifications and then work on a "mod" version later
Sorcerer
February 24th, 2011, 19:31
renaming your 'test ruleset folder' is definitely the thing to to do. And it should load and run perfectly well like that. The main thing is to rename it, since it will always load the pak version in preference to any folder ruleset of the same name.
actually I was not aware that the current version was available in pak form, otherwise I would have suggested extracting it.
Looks like I need to redownload to get the latest version as mine was installed as a a folder ruleset and not a pak when I bought it last year!
Magnatude
February 24th, 2011, 20:17
Another thing I need to do:
My system uses accumulation damage and no set "Hitpoints"
As damage hits the character, the Character makes a save vs the damage total, the higher total of damage, the easier it is for the character to fail his save.
The usual effect is to Black-out until the character makes a successful save to be conscious in a wounded state.
The Black-out saves can be done on the fly but I wouldn't mind getting some input on how to script my damage accumulation.
The Body locations being damaged will effect the Save roll with a modifier, but that can be done on the fly instead of being scripted.
Sorcerer
February 24th, 2011, 21:31
in this instance i don't think the BRP ruleset will give you any concrete examples of what to do, as it is abit 'rules lite' in terms of combat.
i.e. it does not (as far as i can remember) have any automatic targeting and damage calculation system.
better examples can be found within the 4E ruleset which is included with FG2 or in d20_JPG and the C&C rulesets.
the d20_JPG ruleset can be downloaded for free from the downloads section of this website (C&C is available in the store). both are probably more straightforward than the 4E system to understand (although there is alot of good stuff to be found in the 4E ruleset as it is smiteworks 'flagship' and is probably the most advanced in terms of automation.
anyway, in those rulesets attack and damage rolls can be dropped onto the tokens of your opponents on the map image (or directly on the opponents combat tracker entry).
with respect to damage; the damage roll is automatically calculated but it is not deducted from the HP total it is added to a wounds total, which is compared to the HP total.
I suppose you can use this same system of totaling wounds.
if I recall correctly all the action for this coding goes on within chatmanager.lua/chat_chat.lua where the dice rolls are processed from the chat window and in combattracker_common.lua where the damage is applied to the charactersheet (through links set up in combattracker_entry.lua).
there may be some calls to related files, but anyway that might be enough to get you started.
MeganHunter
April 19th, 2011, 05:11
I'm actually not able to open my lua files to edit them. Around the net it says any text editor, but none of mine recognize it in the drop down. I hope it's not some Win 7 thing.
Speaking as another person who's not a programmer, I read through that whole BRP custom link and it does sound far easier than the others I've seen; you're right Sorcerer, the author did an excellent job making it as easy as he could.
StuartW
April 19th, 2011, 06:46
@Sorcerer,Magnatude: The 4e,d20 and C&C rulesets do a great job of automating combat results, and it is something that makes combat run more easily. I'd like to claim that hit locations make that too difficult (you need to resolve the hit location when you drop damage on a token), but I think that is probably just me being generous to myself ;)
@MeganHunter: I don't think you can drop Lua files onto an editor, you either have to right-click and choose (Open With...) or fire up your editor first and then open the file from within the editor (File->Open...). I use Visual Studio to edit rulesets, but that is overkill for most folks. I've heard that Notepad++ is a Good Thing, and I believe it is free.
Cheers
Stuart
Sorcerer
April 19th, 2011, 07:53
I'm sure you are right, the hit locations would make the automation and coding a real pain. I'm sure you could do it if you wanted to, but it would probably age you about 10 years and take you nearly as long - especially since hit locations change per creature type.
with regard to lua editing, I use notepad++, it is very good and as you say, it is free.
I have the xml and lua files associated with it so that a double click will open them directly, but it is possible (if notepad++ is already open) to drag and drop files onto it.
I do this mainly when I have a keyword/variable/function that I can't find but know exists. In which case I simply drag and drop all the ruleset lua/xml files into it, and then do a search of all opened files. That works well, especially if you want to see all the references to a particular variable/function.
I'm sure standard windows notepad will open lua files as well, although it has to be specifically selected from the list (right click menu, open with), but it is not ready a good editor for lua.
find the link for notepad++ 5.9 (current release) below
https://notepad-plus-plus.org/release/5.9
MeganHunter
April 19th, 2011, 18:44
Thank you both, I've downloaded notepad++ and it works just fine. I didn't realize you were that Stuart Stuart. :) I think I will end up buying BRP down the road if I can convince my friends to play Mutants & Masterminds, it seems like the next best thing to a specific sheet.
Opening it up, for my current campaign there's still enough complexity in coding that I think I'll have to stick with Generic for this. It's only a little disappointing because we found out Item sheets in Generic only share the name, none of the stuff I've written down in them. So then I have to drag them to the chat window, but the players can't copy paste that info and have to type it all over. It's just so much wasted work, not just on flavor text that they'll now only hear once, but in writing out all the item stats. So they just ask me every 5 minutes "what's that do again?" Terribly slow. I'm actually close to making my Items as Images just so they can see the freakin' details.
Sorcerer
April 19th, 2011, 21:03
There seems to be a problem with the Generic ruleset.
Having a look at it, it seems that it should have 2 tab items just like the d20 and rulesets. The code is there, it's just that the tabs are not working.
If it were working, then the 1st tab (the only one currently shown) would be for GM only details, and the second one would be where you would put the players description (or descriptions as it has one for at a glance and a second for when it is identified [switch between the two via a check box).
The tabs are blank, but you can make out part of the word 'main' near the top. This should be lined up with the tabs at the side.
unfortunately I don't have time at the moment to work out why its not working.
MeganHunter
April 19th, 2011, 21:20
I thought I saw some funny business on the side there. Unfortunately I really only know how to do the art end, I'm making a Generic theme (that's hopefully not generic) right now. I do understand what you're saying though, it makes a lot of sense that it's there but hiding.
Sorcerer
April 19th, 2011, 21:31
actually I've just worked out whats wrong.
the Author has created a new template within the character sheet called "tab control", unfortunately there was already a tab control file which was used for the items, personalities etc, as they have the same name FG is using the first one it finds, which is the character sheet one.
It just needs to be renamed to something unique. I don't think it is a big job - but its getting late in my time zone, so I will try to have a look at it tomorrow, when I get home from work.
Sorcerer
April 19th, 2011, 22:07
OK so I was going to go to bed, but sometimes I just can't let go...
although this template exists, it does not appear to be in use.
if you go to the Generic Ruleset folder (shortcut to the application data folder should be in the start menu under fantasy grounds - from there rulesets\generic) you will find the charsheet.xml file
if you open it with notepad++, you will see near the top - lines 7 to 15
<template name="tabcontrol">
<genericcontrol>
<tab mergerule="resetandadd" />
<frame>
<name>tabs</name>
</frame>
<script file="scripts/charsheet_tabs.lua" />
</genericcontrol>
</template>
put <!-- in front of it and --> behind it to disable it (its safer than deleting in case I am wrong!) notepad++ should change the text colour to green, letting you know that it will be ignored
so that it now reads
<!--<template name="tabcontrol">
<genericcontrol>
<tab mergerule="resetandadd" />
<frame>
<name>tabs</name>
</frame>
<script file="scripts/charsheet_tabs.lua" />
</genericcontrol>
</template>-->
then save and restart FG
the previously hidden tabs should now be working. (I hope!)
Magnatude
April 19th, 2011, 23:11
Thanks man, this is good, I'll alter my own later on... and thanks again to all of those who replied to help me.
MeganHunter
April 20th, 2011, 05:14
Wow that was really nice of you, thank you Sorcerer I hope you didn't go to too much work on my account. I'm going to try this now and hope that I don't mess it up too bad lol. Better make a backup copy first.
Update: Eureka! It works! Many ye olde thanks to you-ye, good sir.
https://69.175.61.98/~meganhun/othersites/GenericItemScreen.jpg
Sorcerer
April 20th, 2011, 08:08
Glad to help, it didn't take too long to track down as I am reasonably familiar with how this piece of the ruleset should work [it has been lifted directly out of the standard d20 ruleset].
I had feared that it would require renaming of all references to this template...but when I couldn't find any references to it, it was relatively simple.
anyway, the backup was a good Idea - that I should have suggested myself.
I get things wrong more often than right..
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.