WHAT'S NEW?
Loading...

RSG Fixture files editing tutorial

RSG Editing Tutorial
What is an RSG file?

RSG files for Cricket 07 contain the fixtures. They control the teams participating, the locations, the time, the date and possibly the overs (match length).


How to edit an RSG file?

They can be easily edited by the Notepad.


A simple understanding of an RSG file.

Every RSG has a particular set of itself and that cannot be changed. Changing it will cause the game to crash. So, there is a big limitation in editing the RSGs. Let us see how the teams and stadiums (locations) can be edited/added/deleted.

Pool games are added in the <pool> tags followed by the number of games and the pool number (ID).

For example, this tag represents that this is the first round and the pool has 6 matches. The IDs begin from 0 and so the first pool has the ID 0, second has the ID 1 and so on.
Code:<pool games="6" id="0">

</pool>
Similarly, if its a round robin stage, the tags used are <round>. <round> tags are useful in leagues have format like the IPL.


How the games inside the <pool> and <round> tags are?

They are in the tags <game>.

Consider this example. This states that it is the first match, being played at the first location, between the first and the second team on 26th October, 2010 and is a day match.

Code:<game id="0" location="0" hometeam="0" awayteam="1" year="2010" month="10" day="26" night="0" overs="2" />
How to get the team IDs and Location IDs?

This is the most important part. Before the start of the pools or rounds, the locations and the teams have to be mentioned.

Locations are in the <locations> tag. For example, if the locations are Barbados (Game index 34) and Adelaide (Game index 2), then the <locations> tage looks like this.

Code:<locations>

<location id="0" alias="Barbados" Index="34" />

<location id="1" alias="Adelaide" Index="2" />

</locations>
The ID can be of our choice but the Index is specific for each stadium. Its the Index number which identifies the stadium and not the alias.


Similarly for the teams. If the teams participating are Australia (Game index 0), Scotland (Game Index 61), South Africa (Game Index 30) and Netherlands (Game index 21), then the <teams> tag looks like this,
Code:<teams>

<team id="0" alias="Australia" Index="0" />

<team id="1" alias="Scotland" Index="61" />

<team id="2" alias="South Africa" Index="30" />

<team id="3" alias="Netherlands" Index="21" />

</teams>
The maximum we can do by editing an RSG is to edit the teams, stadiums, time and date.

Teams and stadiums can be edited through editing the contents of the <teams> and <locations> tags respectively and the time can be edited by change the "Night" boolean value. Date can be edited by editing the "Day", "Month" and the "Year" value in numerics.


--------

Resources:

The RSG files
Code:The RSGs for various tournaments can be found from the 247th to the 271st rows of the fshlist
The Teams' Index Numbers
Code:The Teams' Index Numbers can be found in the "be2970b0ada8e42cf891ce60ffe69575.xml" file from data.gob.


For example:

The Index code for Australia is 0.

<team Index="0"
TeamName="Australia" TeamNameShort="Australia" Abbreviation="AUS"
LogoAbbreviation="AUS" StandardOfCricket="0" /> <!-- ID_AUSTRALIA
-->
The Stadiums' Index Numbers

Code:The Stadium Index Numbers can be found in "20f6cf7cd49d42dd0fe5f86519a0cd95.xml" file from data.gob.


For example:

The Index code for Auckland is 2

<stadium name="Adelaide" location="adelaide" id="2" sky="1" ScoreboardType="0"/>


Special Credits : YUDI

0 comments:

Post a Comment