Thread: Hacking a Theme
-
October 1st, 2020, 03:40 #131
This is more a SFRPG ruleset question, but because we are writing code to potentially affect the operation of the Ship CT, I will ask.
With the normal Combat Tracker, there are two versions: combattracker_host and combattracker_client. I think this is due to the GM's combat tracker needing to show things that he doesn't want the players necessarily seeing.
Near as I can see, there is only one Ship Combat Tracker. Do we need one for the host(GM) and one for the client(Players?) I'm not familiar enough with Ship Combat in SF to know.
-
October 1st, 2020, 11:33 #132
-
October 1st, 2020, 11:48 #133
Connected players get a ship combat tracker that looks like this:
player.jpg
GM ship combat tracker looks like this
gm.jpg
I'm not sure where the code to handle that difference is, but there certainly is a difference (to keep players from changing things like round and phase).Last edited by bmos; October 1st, 2020 at 15:58.
bmos' extensions
he/them
-
October 1st, 2020, 14:37 #134
-
October 1st, 2020, 15:34 #135FGU Ultimate License
FG Discord - Lord_Ulric
Time Zone: US Eastern (GMT -5)
Playing - Starfinder, D&D, Savage Worlds, Call of Cthulhu, Hero System aka Champions, Traveller, and more!
My Forge Creations
-
October 1st, 2020, 16:26 #136
Both are located in their respective files as they both share the parent combattracker to gain some of it's functionality. ct_host.xml holds the GM ship ct and ct_client.xml holds the Player ship ct. The follow the same methodology of the original CT to separate data that the players don't need to know. Plus keeps ships hidden that don't need to be displayed. Many of this is located within the ruleset code and can be seen by unpacking it and searching through the code.
Dominic Morta
Ruleset Developer
Smiteworks
How to zip up your campaign if the Developers ask for it-How to zip up your campaign if the Developers ask for it
How to provide an Unity Connection issue?-Connection Issues and What to Provide
Unity Updater issue?-Updater Issues
Classic and Unity Port Forwarding?-Fantasy Grounds Connections Explained
Comcast or Cox ISP User?-Comcast XFinity and Cox Users
Have a suggestion?-Feature Request
-
October 1st, 2020, 16:43 #137
OK. Here's my latest iteration. It brings up the appropriate Ship_ct depending on mode. (I tested it with 2 instances, one GM, one client connected via localhost.)
Also, I happened to prefer the Ship_ct to be first in the list, so I moved it here. I also used a different button_shipct image than BMOS, BUT! I included his as button_shipct_alt.
I made a first attempt at getting the stack to initialize w/out going to the library. I copied manage_desktop.lua from the CoreRPG and included it as BMOS did data_desktop_SFRPG.lua to override the original definitions, however, it had an unexpected affect, when it should have had NO affect (No changes.) It changed the initial stack so "Boon" was at the bottom and prevented you from getting to the library. Weird!
extension.xml
Code:<script name="DesktopInit" file="scripts/init_desktop.lua" /> <script name="Desktop" file="scripts/data_desktop.lua" /> <script name="DesktopSFRPG" file="scripts/data_desktop_SFRPG.lua" /> <script name="DesktopManager" file="scripts/manager_desktop.lua" />
-
October 1st, 2020, 16:52 #138
I hate order dependencies, however ...
I moved the manager_desktop.lua to be the 1st script loaded, and it resolved the issue --> Library ends up on top and you can reset the list.
Code:<script name="DesktopManager" file="scripts/manager_desktop.lua" /> <script name="DesktopInit" file="scripts/init_desktop.lua" /> <script name="Desktop" file="scripts/data_desktop.lua" /> <script name="DesktopSFRPG" file="scripts/data_desktop_SFRPG.lua" />
-
October 1st, 2020, 17:03 #139
My button was just the easiest thing I could think of
I didn't like that it was pretty much the same as another button that was used lower down, no hard feelingsbmos' extensions
he/them
-
October 2nd, 2020, 00:10 #140
So, I was able to get rid of that pesky window, but I pissed off FGU:
Code:[10/1/2020 3:45:26 PM] [<color="red">ERROR</color>] Attempt to instantiate missing window class () [10/1/2020 3:45:26 PM] [<color="red">ERROR</color>] Attempt to instantiate missing window class () [10/1/2020 3:45:26 PM] [WARNING] template: Could not find template (chat_resize) in class (chat) [10/1/2020 3:45:26 PM] [<color="red">ERROR</color>] desktop: Panel (identitylist) anchoring to uninitialized target panel (shortcutsanchor)
desk_panels.xml
Code:<panel name="shortcutsanchor" /> <panel name="shortcuts" /> <panel name="chat" modes="host,client,local"> <class>chat</class> <bounds>0,90,425,-130</bounds> <dynamic /> <locked /> </panel>
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks