Difference between revisions of "GRepo - The NewGRF Repository"

From #openttdcoop wiki

Jump to: navigation, search
(Functions)
m (VERSIONS)
 
(7 intermediate revisions by the same user not shown)
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)
===CATEGORIES===
+
*license (GPL, ..., private permission)
  
*Link GRF Crawler
+
===RULES===
===DEPENDENCIES===
+
*[GRFS(1:n)]
*Before/After
+
*type (exclude,include,exclusiveCategory,replace,before,after)
*optional
+
*GRFID foreign (index)
===USERS===
+
*weight (strict, recommendation)
already a table of the admin (mainmodul)?
+
*Nick
+
*Realname
+
*Link to TT-Forum Profile
+
*Link to wiki.openttd.org Userpage
+
* openttdcoop username
+
  
===LINKS===
+
===PARAMETERS===
*Download
+
*[VERSIONS(1:n)]
*Forum
+
*pos (0..)
 +
*type (list,bitswitch,number)
 +
*data
  
*GRF Crawler
 
*Homepage
 
  
== Headline text ==
 
  
 +
===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==
 
==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>
 
 
===generating GRFPacks (zip)===
 
===generating GRFPacks (zip)===
 
===auto checking for available updates===
 
===auto checking for available updates===
  
 
[[Category:OpenTTD Web Admin]]
 
[[Category:OpenTTD Web Admin]]

Latest revision as of 14:41, 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)
  • license (GPL, ..., private permission)

RULES

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

PARAMETERS

  • [VERSIONS(1:n)]
  • pos (0..)
  • type (list,bitswitch,number)
  • data


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
  • This page was last modified on 6 November 2008, at 14:41.