Difference between revisions of "GRepo - The NewGRF Repository"

From #openttdcoop wiki

Jump to: navigation, search
m
Line 1: Line 1:
The GRF Manager is the first module of a set for administrating a OpenTTD server over Web.
+
Design of the GRepo for the pack and autodownload features...
 +
 
 
==Tables==
 
==Tables==
Depense on the used Framework, but at least a field for TIMESTAMP (updated), DELETED, CREATED is default for every table.
+
Depense on the used Framework, but at least a field for UID, TIMESTAMP (updated), DELETED, CREATED is default for every table.
  
 
===GRFS===
 
===GRFS===
*GRFID
+
*GRFID (index)
 
*name
 
*name
*(same as GRF Crawler)
+
*description
*static
+
*exklusiveSet
+
 
===VERSIONS===
 
===VERSIONS===
 +
[GRFS(1:n)]
 
*name
 
*name
*md5sum
+
*md5sum (index)
*path
+
*public (bool)
 +
===RULES===
 +
*[GRFS(1:n)]
 +
*type (exclude,include,exclusiveCategory,replace,before,after)
 +
*GRFID foreign (index)
 
===CATEGORIES===
 
===CATEGORIES===
 
+
(from GRF Crawler)
*Link GRF Crawler
+
*[GRFS(m:n)]
===DEPENDENCIES===
+
*name
*Before/After
+
===AUTHORS===
*optional
+
*[GRFS(m:n)]
===USERS===
+
*Nick (unique)
already a table of the admin (mainmodul)?
+
*Nick
+
 
*Realname
 
*Realname
*Link to TT-Forum Profile
+
*ID of TT-Forum
*Link to wiki.openttd.org Userpage
+
*username wiki.openttd.org
* openttdcoop username
+
*username wiki.openttdcoop.org
 
+
*description
===LINKS===
+
===DOCS===
*Download
+
*Forum
+
 
+
*GRF Crawler
+
*Homepage
+
 
+
== Headline text ==
+
 
+
 
==Functions==
 
==Functions==
 
===Fetching Filesystem for all available GRFs===
 
===Fetching Filesystem for all available GRFs===
 
===Fetching GRFdata from GRF Crawler===
 
===Fetching GRFdata from GRF Crawler===
I guess the GRFID is needed for that:
 
 
Example nfo of the depot replacement GRF:
 
<pre>
 
// Automatically generated by GRFCODEC. Do not modify!
 
// (Info version 7)
 
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
 
    0 * 4 09 00 00 \71
 
    1 * 41 08 06 "DG" 00 00 "New Depots" 00 "(c) 2006, Gavin "
 
"Dowland" 00
 
    2 * 5 0A 01 06 27 04
 
    3 h:\bin\ttwin95\sprites/dep2.1w.pcx 66 8 01 11 16 17 3
 
    4 h:\bin\ttwin95\sprites/dep2.1w.pcx 98 8 01 53 64 -9 -37
 
    5 h:\bin\ttwin95\sprites/dep2.1w.pcx 178 8 01 11 16 -32 3
 
    6 h:\bin\ttwin95\sprites/dep2.1w.pcx 210 8 01 53 64 -54 -37
 
    7 h:\bin\ttwin95\sprites/dep2.1w.pcx 290 8 01 53 64 -54 -37
 
    8 h:\bin\ttwin95\sprites/dep2.1w.pcx 370 8 01 53 64 -9 -37
 
</pre>
 
GRFCODEC is also available for Linux, so no wine needed for that.
 
 
 
===generating GRFPacks (zip)===
 
===generating GRFPacks (zip)===
 
===auto checking for available updates===
 
===auto checking for available updates===
  
 
[[Category:OpenTTD Web Admin]]
 
[[Category:OpenTTD Web Admin]]

Revision as of 14:30, 6 November 2008

Design of the GRepo for the pack and autodownload features...

Tables

Depense on the used Framework, but at least a field for UID, TIMESTAMP (updated), DELETED, CREATED is default for every table.

GRFS

  • GRFID (index)
  • name
  • description

VERSIONS

[GRFS(1:n)]

  • name
  • md5sum (index)
  • public (bool)

RULES

  • [GRFS(1:n)]
  • type (exclude,include,exclusiveCategory,replace,before,after)
  • GRFID foreign (index)

CATEGORIES

(from GRF Crawler)

  • [GRFS(m:n)]
  • name

AUTHORS

  • [GRFS(m:n)]
  • Nick (unique)
  • Realname
  • ID of TT-Forum
  • username wiki.openttd.org
  • username wiki.openttdcoop.org
  • description

DOCS

Functions

Fetching Filesystem for all available GRFs

Fetching GRFdata from GRF Crawler

generating GRFPacks (zip)

auto checking for available updates

Powered by MediaWiki