So, ever wondered how we make fixtures for our and others’ patches? Well, it’s the .RSG files we edit! The RSG files contain Cricket07 fixtures. They include all the teams, locations, date(s) and possibly overs. It might be hectic to edit, so we are publishing a Cricket07 Fixture Editing (RSG File) editing tutorial by Yudi from PlanetCricket! After this tutorial, you will know how to edit fixtures and create/edit fixtures of our patches! (.RSG files is their extension).
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.
|<pool games=”6″ id=”0″>
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.
|<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.
<location id=”0″ alias=”Barbados” Index=”34″ />
<location id=”1″ alias=”Adelaide” Index=”2″ />
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,
<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″ />
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.
The RSG files
|The RSGs for various tournaments can be found from the 247th to the 271st rows of the fshlist|
The Teams’ Index Numbers
|The Teams’ Index Numbers can be found in the “be2970b0ada8e42cf891ce60ffe69575.xml” file from data.gob.
<team Index=”0” TeamName=”Australia” TeamNameShort=”Australia” Abbreviation=”AUS” LogoAbbreviation=”AUS” StandardOfCricket=”0″ /> <!– ID_AUSTRALIA –>
The Stadiums’ Index Numbers
|The Stadium Index Numbers can be found in “20f6cf7cd49d42dd0fe5f86519a0cd95.xml” file from data.gob.
<stadium name=”Adelaide” location=”adelaide” id=”2” sky=”1″ ScoreboardType=”0″/>
If any doubts, feel free to post here.