PDA

View Full Version : Create Campaign Setup Question..



Blackfoot
December 12th, 2015, 23:49
The Ruleset Release Info that is displayed the Create Campaign Screen.. where is that stored? I thought I was setting it in my base.xml file.. but it doesn't seem to be having any effect. The release # doesn't change... it always seems to be 0
It IS picking up a logo and Author from there... presumably this...:
<!-- Attributes -->
<description>
<text>Champions Roleplaying Game</text>
<author>Blackfoot</author>
<website>https://www.fantasygrounds.com</website>
</description>Do I need a <release> line in there or something? I tried adding that but it didn't seem to do anything.
Does it only take whole numbers? I thought I'd seen decimal release numbers...

<root version="3.0" release="3" logo="logo.png">

<root version="3.0" release="0.0.8" logo="logo.png">

damned
December 13th, 2015, 04:36
I call <script name="Chat" file="scripts/maelstrom_chat.lua"/> from base.xml



function onInit()
local logomsg = {font = "oocfont", icon="arion_ruleset_token"};
logomsg.text = "The Maelstrom RPG is © Alexander Scott - all rights reserved. Maelstrom Domesday is printed and distributed by Arion Games under license. Some of the Artwork is also Copyright Arion Games. For further information about Arion Games visit: \r\nhttps://www.arion-games.com/";
local diemsg = {font = "chatnpcfont"};
local damnedmsg = {font = "emotefont", icon="diegaming_ruleset_icon"};
damnedmsg.text = "This Fantasy Grounds Maelstrom RPG / Domesday Ruleset (v0.98) was hacked by DIE Gaming plus a big thank you to Trenloe. This hobby is all about the great people you meet. For more great resources visit \r\nhttps://www.fg-con.com/";
local diegamingmsg = {font = "emotefont", icon="diegaming_logo"};


ChatManager.registerLaunchMessage(logomsg);
ChatManager.registerLaunchMessage(urlmsg);
ChatManager.registerLaunchMessage(damnedmsg);
end

Blackfoot
December 13th, 2015, 05:15
Not the same thing actually. I'm not talking about the announcement message.. that's working fine for me by setting the <announcement></announcement> ... I'm talking about the Release value under 'Create Campaign'.

damned
December 13th, 2015, 05:25
Oh - gotcha.

I have this in base.xml
<root version="3.0" release="12" logo="arion_ruleset_token.png">

and it displays
Arion Games
Release 12

Blackfoot
December 13th, 2015, 05:28
Right. But for some reason it is ignoring my setting... see the third code example in my original post. Looking through some of the other rulesets.. they have decimal values.. but it is ignoring mine.. is that because it is using a 'fake' number? I thought I tried 0.1 .. but I might be remembering incorrectly.
My 0.0.8 comes up as 0

damned
December 13th, 2015, 06:33
Try - <root version="3.1" release="0.0.8" logo="logo.png">

Blackfoot
December 13th, 2015, 06:36
Nope.. no difference.
Apparently it is looking for real numbers though.. because 0.8 works... I thought I'd tried that sorry.

damned
December 13th, 2015, 07:10
Ahhh - I only tested it to 1 decimal. Didnt work with root version="3.0" but did work with root version="3.1".

Trenloe
December 13th, 2015, 07:55
Release info here: https://www.fantasygrounds.com/forums/showthread.php?25234-Jeff-s-Excruciatingly-Simple-Extension-Tutorial&p=226020&viewfull=1#post226020

Root version info mentioned (and linked) here: https://www.fantasygrounds.com/forums/showthread.php?25234-Jeff-s-Excruciatingly-Simple-Extension-Tutorial&p=225227&viewfull=1#post225227

Trenloe
December 13th, 2015, 08:02
Ahhh - I only tested it to 1 decimal. Didnt work with root version="3.0" but did work with root version="3.1".
I don't think root 3.1 is valid - according to the versions listed here: https://www.fantasygrounds.com/refdoc/ Certainly the 3.1.5 rulesets are still using root compatibility versions of 3.0.

Blackfoot
December 13th, 2015, 08:22
My issue was actually with the release info. Which apparently is a decimal value rather than a string... which is why I was having issues. I've mostly got it sorted out now. I had read the information about the version number in other threads so that part I was cool with.

damned
December 13th, 2015, 10:36
I don't think root 3.1 is valid - according to the versions listed here: https://www.fantasygrounds.com/refdoc/ Certainly the 3.1.5 rulesets are still using root compatibility versions of 3.0.

Thanks. I made the rookie mistake of making two changes at once thinking that 3.1 was what made the decimal work but decimals do work with 3.0 and more than one decimal place but it must be a valid number as Blackfoot says.

ianmward
December 13th, 2015, 21:36
I found that changing the announcement doesn't always show until you quit and restart (not /restart)

Trenloe
December 13th, 2015, 23:36
I found that changing the announcement doesn't always show until you quit and restart (not /restart)
Correct. The extension announcement is only read from the extension files when FG first reads all of the extensions available after the app first starts. Restart FG to see any changes to the <announcement> tag data.