Difference between pages "Tutorial:Creating Puzzle Pieces" and "Network Specs"

From SC4D Encyclopaedia
(Difference between pages)
Jump to navigation Jump to search
sc4e>CasperVg
 
sc4e>Warrior
 
Line 1: Line 1:
==Creating puzzle pieces==
+
{{Template:NetSpecsNav}}
===What do you need?===
+
<center><big>'''Some pieces of information may be out of date or incorrect'''</big></center>
*Basic understanding of the [[reader]]
+
A lot of information contained in these files are extracts from the [[Simtropolis]] website, from both of the Modding forums. Some information has been extracted from the games own files. Various persons have helped in the deciphering, contribution, &/or gathering of this information. Most notably, {{People|the7trumpets}}, {{People|Teirusu}}, {{People|Karybdis}}, {{People|Redlotus}} & others.  While the specs covered go into great detail & cover quite a lot about SimCity 4 networks, it is not completely comprehensive & may contain errors &/or omissions &/or out of date techniques.
*Notepad(or equivalent, but I advise against Word)
+
*Models and Path files for the [[puzzle piece]]
+
Lets begin shall we……….
===Exporting the RUL file===
+
In total there are 32 [[RUL File]]s that (originally) come with the game ([[Rush Hour]] version). There is also a INI Network-based file. These files (& others) govern how the different networking aspects in SimCity 4 are controlled (or drawn/built in-game). Out of the 32 original RUL files & INI file, some of them have a specific functionality about them &/or in them for the networks. These aspects will be covered in some detail. Follow the links below to a specific area.
Skip this section if you are used to the reader and know how to export files from it.<br>
+
Because the file RUL files are so large they can’t be modified in the reader, so we have to export them and open them in notepad. <br>
+
#{{NetSpecs|Individual Network RULs}}
To do this we first open the NetworkAddonMod_Controller.dat file ([[NAM Controller]]) in the [[reader]]. <br>
+
#{{NetSpecs|IntersectionSolutions RUL}}
You should see 4 files, 1 [[DIR]] and 3 [[RUL]] like below<br>
+
#{{NetSpecs|IntersectionOrdering RUL}}
http://i200.photobucket.com/albums/aa230/warriorST/Private/IMG1.jpg <br>
+
#{{NetSpecs|RuleOverrides RUL}}
Right click on the RUL file with the [[Instance ID]] (IID) of 10000000 (this is the puzzle piece RUL). This will bring up a fairly long context menu.<br>
+
#{{NetSpecs|INI Network & Bridges}}
<br>
+
#{{NetSpecs|Paths}}
http://i200.photobucket.com/albums/aa230/warriorST/Private/IMG2.jpg<br>
+
#{{NetSpecs|Type, Group, Instance IDs}}
<br>
+
Click “Save decoded file”, the second option from the top.
+
'''Please note:'''
And this box will appear. Which tells you the name of the file and that it has been saved.<br>
+
*RUL/INI files are essentially referenced by the exe. Therefore, unless the address of a RUL file already exists within the exe, it can not function. In other words; “new” RULs can not be added without it already having been defined &/or existing in the exe. And thus, new networks can not be added.
<br>
+
*Items, names, & functions in green are typically actual valid code &/or are from the relative RUL/INI &/or other files.
http://i200.photobucket.com/albums/aa230/warriorST/Private/IMG3.jpg<br>
 
<br>
 
Now in Windows, browse to your Network Addon Mod folder and you should see the file you just saved along with another one with the same name except it has “.TGI” on the end.
 
#Rename the file circled in red to “Puzzle Piece.rul”
 
#Rename the file circled in green to “Puzzle Piece.rul.TGI”
 
#The two file names must always match except for the “.TGI” on the TGI file.<br>
 
<br>
 
http://i200.photobucket.com/albums/aa230/warriorST/Private/IMG4.jpg<br>
 
<br>
 
  
===Creating the puzzle piece===
 
The first thing you need to do is get a HID (hex-ID), this is 4 digits long and identifies the puzzle piece.
 
  
For testing we use the range F###.
+
----
  
So open the Puzzle Pieces.rul file you just saved. Now click at the very top of the document. Press Ctrl-F to open find and type in F000, there should be no results, this means it is available to use.
+
<div align=center>
 
+
'''Disclaimer'''
 
+
Now scroll down to the very bottom, and paste this template in.
+
The contents of this document are in no way supported nor endorsed by Maxis or Electronic Arts Incorporated (EA). SimCity 4, SimCity 4 Rush Hour EP, SimCity 4 Deluxe, and associated materials & tools are the property of Electronic Arts Incorporated. The format of any files mentioned in this document belong to Maxis &/or other respective parties. The creator of this document, & the many persons involved with the aspects that this document covers, are not responsible or liable for any loss incidental or otherwise that may arise from the use of this document & the information contained within. The use of this document and the information within it is used solely at your own risk. The use of this document is conditional and acceptance of this disclaimer and all that is within this document.  
<pre>
+
</div>
[HighwayIntersectionInfo_0x0000'''XXX'''0]
+
{{Template:NetSpecsNav}}
;Added by '''USERNAME DATE'''.
+
[[Category:NAM]][[Category:Transit Networks]][[Category:Mods and Modding]]
;'''DESCRIPTION'''
 
Piece = 0.0, 0, 0, 0, '''PREVIEWIID'''
 
PreviewEffect = '''PREVIEWNAME'''
 
 
 
CellLayout =.......
 
CellLayout =......<
 
CellLayout =..^....
 
 
 
'''CHECKTYPES'''
 
 
 
ConsLayout =.......
 
ConsLayout =......<
 
ConsLayout =..^....
 
 
 
AutoTileBase = '''ATBIID'''
 
PlaceQueryID = '''PQIID'''
 
Costs = 50
 
 
 
[HighwayIntersectionInfo_0x0000'''XXX'''1]
 
CopyFrom = 0x'''XXX'''0
 
Rotate = 1
 
[HighwayIntersectionInfo_0x0000'''XXX'''2]
 
CopyFrom = 0x'''XXX'''0
 
Rotate = 2
 
[HighwayIntersectionInfo_0x0000'''XXX'''3]
 
CopyFrom = 0x'''XXX'''0
 
Rotate = 3
 
;Rotation Clones
 
[HighwayIntersectionInfo_0x0000'''XXX'''4]
 
CopyFrom = 0x'''XXX'''0
 
[HighwayIntersectionInfo_0x0000'''XXX'''5]
 
CopyFrom = 0x'''XXX'''1
 
[HighwayIntersectionInfo_0x0000'''XXX'''6]
 
CopyFrom = 0x'''XXX'''2
 
[HighwayIntersectionInfo_0x0000'''XXX'''7]
 
CopyFrom = 0x'''XXX'''3
 
</pre>
 
 
 
First off, we need to replace all the words in Capital and with ''' surrounding them.
 
 
 
1) Replace '''XXX''' with the first 3 digits of your HID, in this case F00. This is what links the actual RULs to the Ordering Section  at the top.
 
 
 
2) Replace '''USERNAME''' with your Username. This is just for reference.
 
 
 
3) Replace '''DATE''' with the current date. This is just for reference. (To limit confusion, use the date format DD-MON-YEAR, eg 02-Oct-2008)
 
 
 
4)
 
 
 
preview_constructionmedium
 
[[Category:Transit Networks]]
 

Revision as of 08:32, 28 August 2011

Some pieces of information may be out of date or incorrect

A lot of information contained in these files are extracts from the Simtropolis website, from both of the Modding forums. Some information has been extracted from the games own files. Various persons have helped in the deciphering, contribution, &/or gathering of this information. Most notably, the7trumpets, Teirusu, Karybdis, Redlotus & others. While the specs covered go into great detail & cover quite a lot about SimCity 4 networks, it is not completely comprehensive & may contain errors &/or omissions &/or out of date techniques.

Lets begin shall we………. In total there are 32 RUL Files that (originally) come with the game (Rush Hour version). There is also a INI Network-based file. These files (& others) govern how the different networking aspects in SimCity 4 are controlled (or drawn/built in-game). Out of the 32 original RUL files & INI file, some of them have a specific functionality about them &/or in them for the networks. These aspects will be covered in some detail. Follow the links below to a specific area.

  1. Individual Network RULs
  2. IntersectionSolutions RUL
  3. IntersectionOrdering RUL
  4. RuleOverrides RUL
  5. INI Network & Bridges
  6. Paths
  7. Type, Group, Instance IDs

Please note:

  • RUL/INI files are essentially referenced by the exe. Therefore, unless the address of a RUL file already exists within the exe, it can not function. In other words; “new” RULs can not be added without it already having been defined &/or existing in the exe. And thus, new networks can not be added.
  • Items, names, & functions in green are typically actual valid code &/or are from the relative RUL/INI &/or other files.



Disclaimer

The contents of this document are in no way supported nor endorsed by Maxis or Electronic Arts Incorporated (EA). SimCity 4, SimCity 4 Rush Hour EP, SimCity 4 Deluxe, and associated materials & tools are the property of Electronic Arts Incorporated. The format of any files mentioned in this document belong to Maxis &/or other respective parties. The creator of this document, & the many persons involved with the aspects that this document covers, are not responsible or liable for any loss incidental or otherwise that may arise from the use of this document & the information contained within. The use of this document and the information within it is used solely at your own risk. The use of this document is conditional and acceptance of this disclaimer and all that is within this document.