Adding in required numbers manually: can it be done?

isnorden

Amnesiac Modder
Joined
Jul 6, 2012
Messages
608
Location
Madison, Wisconsin, USA
Since I have problems keeping ModBuddy from crashing, I wrote my first simple XML mod manually (with Wordpad) and began writing a .modinfo file to match. There's just one problem: I can't assign numbers myself where the code needs them! You know the numbers I mean--the places where the info file might say

Code:
<Mod id="e9a7fe23-f3fd-4806-a65d-1bc6262bcacf" version="3">


or


Code:
<File md5="6BEE09E113258CAF20B27AF9943D328F" import="0">religion schism.xml</File>

For someone editing without ModBuddy, is there a workable way to identify the mod and the required files? Since the attachment manager rejected my files as invalid, I'll cut and paste my work here (it's a very simple mod).

First, the rules to be added--


Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Sweden's starting terrain tweaked, by Ingeborg S. Nordén -->
<!-- (based partly on Hypereon's Finnish civilization mod) -->
<!-- edited with WordPad for Windows v5.1) -->
		

<GameData>

	<Update>

		<Civilization_Start_Region_Priority>
			<Row>
				<CivilizationType>CIVILIZATION_SWEDEN</CivilizationType>

				<RegionType>REGION_FOREST</RegionType>
			</Row>

			<Row>
				<RegionType>REGION_TUNDRA</RegionType>
			</Row>

		</Civilization_Start_Region_Priority>

	</Update>


	<Update>

		<Civilization_Start_Region_Avoid>

		<Row>
			<CivilizationType>CIVILIZATION_SWEDEN</CivilizationType>
			<RegionType>REGION_DESERT</RegionType>
		</Row>

		<Row>
			<CivilizationType>CIVILIZATION_SWEDEN</CivilizationType>
			<RegionType>REGION_JUNGLE</RegionType>
		</Row>

		</Civilization_Start_Region_Avoid>

	</Update>

</GameData>


Second, what I've put into the .modinfo so far. I admit I used ModBuddy to get a mod ID number and the DLC code for "Gods & Kings"...but what about assigning the rules file an .md5 number? :confused: I can't get that far even with the SDK, let alone by myself.

Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="4c8d2ca4-2721-4882-b6d0-95c3e17610ec" version="1">
  <Properties>
    <Name>Sweden--Starting Location</Name>
    <Author>I.S. Nordén</Author>
    <SpecialThanks>Hypereon</SpecialThanks>
    <Teaser>Adds a starting location bias for the Swedish civilization.</Teaser>
    <Description>After seeing too many Swedish settlers begin the game in very un-Nordic terrain,[NEWLINE]I decided to do something about it.</Description>
   
<Dependencies>
    <Dlc id="0E3751A1-F840-4e1b-9706-519BF484E59D" minversion="0" maxversion="999" />
</Dependencies>

If any of you can help with the numbering problem, I'd be extremely grateful; up until now, I couldn't even submit a new project description without the program crashing.
 
The md5 values are only used during upload to and download from the Workshop - and without ModBuddy you're not going to be able to do that - so you can set them to any value. (I think the attribute has to be present even if the content is ignored)
 
Back
Top Bottom