STAR TREK 2d20
Page 3 of 5 First 12345 Last
  1. #21
    tlavalle's Avatar
    Join Date
    Oct 2010
    Location
    St Cloud, MN USA
    Posts
    238
    ok, that will help, I have a occupations in but now i have to tweak the output. thanks all
    Ultimate License holder.

    Cluster bombing from B-52s is very, very accurate. The bombs always hit the ground.

  2. #22
    tlavalle's Avatar
    Join Date
    Oct 2010
    Location
    St Cloud, MN USA
    Posts
    238
    not done yet with questions, what should i use so that when you click on occupations it gives clickable list instead of printing everything out.
    Ultimate License holder.

    Cluster bombing from B-52s is very, very accurate. The bombs always hit the ground.

  3. #23
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    Quote Originally Posted by tlavalle View Post
    what should i use so that when you click on occupations it gives clickable list instead of printing everything out.
    See the CoC Reference module (CoCReference.mod) for an example. <library><rules-003><entries><section-009> uses the referenceindex class to display extra entries in the following <index> section. This is the "A Mythos Grimoire" section from the reference module:

    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  4. #24
    tlavalle's Avatar
    Join Date
    Oct 2010
    Location
    St Cloud, MN USA
    Posts
    238
    ok, i am back i had a small vacation. i know you said look at coc reference mod, but i am missing something when i look at it. where can i get a look at the elements piece by piece?
    Last edited by tlavalle; July 15th, 2015 at 08:39.
    Ultimate License holder.

    Cluster bombing from B-52s is very, very accurate. The bombs always hit the ground.

  5. #25
    tlavalle's Avatar
    Join Date
    Oct 2010
    Location
    St Cloud, MN USA
    Posts
    238
    ok i have started to code after looking at stuff you pointed out. i did fix the skills ext. but here is the mod i am working on:
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <root version="2.0">
    	<library>
    		<rules-003 static="true">
    		<name type="string">Reference</name>
    		<categoryname type="string">Achtung! Cthulhu</categoryname>
    		<entries>
    			<section-001>
    				 <librarylink type='windowreference'>
                <class>referenceindex</class>
                <recordname>..</recordname>
              </librarylink>
              <name type="string">Occupations</name>
              <index>
    			<id-00000>
                  <listlink type='windowreference'>
                    <class>referenceoccuptions</class>
                    <recordname>..</recordname>
                  </listlink>
                  <name type='string'>All Occupations</name>
                  <spelltype type='string'></spelltype>
                  <source type='string'>reference.occupations@Reference</source>
                </id-00000>
    			<id-00001>
                  <listlink type='windowreference'>
                    <class>referenceoccuptions</class>
                    <recordname>..</recordname>
                  </listlink>
                  <name type='string'>Civilian Occupations</name>
                  <spelltype type='string'>Call/Dismiss Deity</spelltype>
                  <source type='string'>reference.occupations@Reference</source>
                </id-00001>
    			<id-00002>
                  <listlink type='windowreference'>
                    <class>referenceoccuptions</class>
                    <recordname>..</recordname>
                  </listlink>
                  <name type='string'>Covert Occupations</name>
                  <spelltype type='string'>Covert</spelltype>
                  <source type='string'>reference.occupations@Reference</source>
                </id-00002>
    			<id-00003>
                  <listlink type='windowreference'>
                    <class>referenceoccuptions</class>
                    <recordname>..</recordname>
                  </listlink>
                  <name type='string'>Military Occupations</name>
                  <spelltype type='string'>Miltary</spelltype>
                  <source type='string'>reference.occupations@Reference<source>
                </id-00003>
    			</section-001>
    		</rules-003>
    	</library>
    	<reference>
    </root>
    this is not showing up in FG. what did i miss?
    Ultimate License holder.

    Cluster bombing from B-52s is very, very accurate. The bombs always hit the ground.

  6. #26
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    at the lowest level - your last reference tag isnt closed - id remove that or close it for starters...

  7. #27
    tlavalle's Avatar
    Join Date
    Oct 2010
    Location
    St Cloud, MN USA
    Posts
    238
    Quote Originally Posted by damned View Post
    at the lowest level - your last reference tag isnt closed - id remove that or close it for starters...

    i did that. the mod still doesn't show i know there is nothing listing, but i doesn't show in the modules selection.
    Ultimate License holder.

    Cluster bombing from B-52s is very, very accurate. The bombs always hit the ground.

  8. #28
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    so you have both a definition.xml and a db.xml?
    post the whole thing here as an attachment.

  9. #29
    tlavalle's Avatar
    Join Date
    Oct 2010
    Location
    St Cloud, MN USA
    Posts
    238
    ok done
    Ultimate License holder.

    Cluster bombing from B-52s is very, very accurate. The bombs always hit the ground.

  10. #30
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    There were still some more unclosed tags.
    Im not sure what you are supposed to achieve and Im no expert with these library files - I do also find them challenging.

    Here is Trenloes code expanded to a second entry. Try using this and see if it explains it better?

    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <root version="2.0">
    	<library>
    		<mylist>
    			<name type="string">Occupations</name>
    			<categoryname type="string">Call of Cthulhu</categoryname>
    			<entries>
    				<alloccupations>
    					<name type="string">All Occupations</name>
    					<librarylink type="windowreference">
    						<class>referencetextwide</class>
    						<recordname>..</recordname>
    					</librarylink>
    					<name type="string">All Occupations</name>
    					<librarylink type="windowreference">
    						<class>referencetextwide</class>
    						<recordname>..</recordname>
    					</librarylink>
    					<text type="formattedtext">
    						<b>Aviator</b>
    						<p>You don’t need to be in the military to learn how to fly, as</p>
    						<p>the Aviator proves. Many young men and women, fascinated</p>
    						<p>by the power of flight and the freedom it brings, fly for fun or</p>
    						<p>profit and occasionally both. Civilian pilots like the Aviator</p>
    						<p>can be seconded to military services, such as those flying for</p>
    						<p>the British Air Transport Auxiliary (p.45).</p>
    						<p><b>EARNINGS</b></p>
    						<li>Lower to Middle</li>
    						<li>Middle</li>
    						<li>Middle to Upper</li>
    						<p><b>CONNECTIONS</b></p>
    						<li>Aircraft manufacturers</li>
    						<li>airfield personnel</li>
    						<li>courier companies</li>
    						<li>film studios</li>
    						<li>government surveying departments</li>
    						<li>mechanics</li>
    						<li>pilots</li>
    						<li>Access to a plane</li>
    						<p><b>SPECIALISATIONS</b></p>
    						<li>Aeroplane Ferrying</li>
    						<li>Aircraft Manufacturer Test Pilot</li>
    						<li>Courier</li>
    						<li>Mapping and Surveying</li>
    						<li>Passenger Services</li>
    						<li>Racing Pilot</li>
    						<li>Record-breaker</li>
    						<li>Stunt Pilot</li>
    						<b>SKILLS</b>
    						<li>Bargain</li>
    						<li>Electrical Repair</li>
    						<li>Listen</li>
    						<li>Mechanical Repair</li>
    						<li>Navigate (Air/Sea)</li>
    						<li>Pilot (Single-prop or Multi-prop)</li> 
    						<li>Radio Operator</li>
    						<li>Spot Hidden</li>
    						<li>plus up to two other professional
                        or personal interest skills.</li>
    						<b>BONUS</b>
    						<li>Home Ground: the Aviator can add an additional +20% to
                        Navigate when flying over familiar territory.</li>
    					</text>
    					</alloccupations>
    				<civillianoccupations>
    					<name type="string">Civillian Occupations</name>
    					<librarylink type="windowreference">
    						<class>referencetextwide</class>
    						<recordname>..</recordname>
    					</librarylink>
    					<name type="string">Civilian Occupations</name>
    					<librarylink type="windowreference">
    						<class>referencetextwide</class>
    						<recordname>..</recordname>
    					</librarylink>
    					<text type="formattedtext">
    						<b>Cleaner</b>
    						<p>Because cleanliness is next to godliness and thats gotta be a good thing in Call Of Cthulhu.</p>
    
    					</text>
    					</civillianoccupations>
    			</entries>
    		</mylist>
    
    
    	</library>
    </root>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in