Grf Crawler 1.0 - RSS - Category System - RSS feed - XML API

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
orudge
Administrator
Administrator
Posts: 25134
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

eis_os wrote:Until Owen has finally made an login system work, GRFCrawler remains closed.... :!:
Erk! :?

I'll try my best as soon as I can!
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

What kind of login system does your site need, I personally have good experiances using PEAR::AUTH.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

TT-Forums passport like system ...
[14:26] <orudge> A unified tt-forums login system
[14:26] <orudge> so in other words
[14:26] <orudge> sites like grfcrawler, the Repository and ttdgraphics can all use tt-forums logins
[14:26] <orudge> Kind of like a Microsoft Passport system
[14:26] <orudge> only without Microsoft
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

So that it can use tt-forums users? try:

Code: Select all

require("Auth.php");
$dsn = "mysql://user:password@localhost/database";
$authdsn = array(
            "dsn" => $dsn,
            "table" => tt_forum_db.phpbb_users",
            "usernamecol" => "username",
            "passwordcol" => "user_password"
            );

$auth = new Auth("DB", $authdsn, "loginFunction", 1);
$auth->setSessionname("somename");
$auth->start();

if ($auth->checkAuth()) {
//Do what you normaly would do here
} else {
//Do what you would do when the user is not logged in.
}

function loginFunction() {
//print the login form here...
}
that is what I use, if you have access the ttforum db like me.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

I have no access to it, and I know how to programm it, I even could check the tt-forums cookie and do an autologin if I would have access... :)
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

how to acces the cookie, the cookie is limited to domain/path of tt-forums.net the cookie would not be sent to your site (unless you use the same domain as tt-forum)

just ask owen, he will open it for you I think.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Well grfcrawler is open again :wink:
grfcrawler is a subdomain of tt-forums.net, so I have some access to the cookie :-)
Last edited by eis_os on 22 Jul 2005 20:57, edited 1 time in total.
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Well you can even login and out with proxys,
so I can soon start to bind grfs to tt-forums user :)
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

eis_os, you need images too for grfcrawler? I can add image source to the feed if you like.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
Rob
Tycoon
Tycoon
Posts: 4355
Joined: 31 Dec 2002 16:52
Location: Ven-Zelderheide, The Netherlands

Post by Rob »

It might be a good idea to warn for logging out in the crawler, since you also logout from the forums at the same time, and thus loosing your unread posts in the process. :wink:
Wie zich gelukkig voelt met het geluk van anderen, bezit een rijkdom zonder grenzen. (F.Daels)
Image
Still the best OS around
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Well yes, but the image has to be / would need to be 75x75 pixel for the small display, btw. do you have planed a GRFID field?
We should move that discussion maybe into private messages...

Rob: Well a warning could be good, true
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

My thumbnails are 120x120. You can resize them yourselve using gd.

I don't have plans to include grfid. I could add a field for users to input it. Or read it from the grf file. I however have no idea how a grf file looks internally.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

I've got a bit of code for extracting the GRF info over here. I think it breaks if the size sprite starts with 08, though, so something needs to be done about that. AIUI, the pseudosprite data is written directly to the GRF, that is, not compressed, so it's pretty easy to read.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

I studied it, alltough it makes no sense to me just yet. I actualy need to program the grfid extraction from php.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

The conversation of the editing features need more time then expected, so the new grfcrawler will start next week hopefully.
(Defined Constants behave very odd, sometimes they can be used as Value sometimes not)
TODO List:
Written Plugins for Smarty: done
Conversation to Smarty: 80%
Session Mangement Binding to TT-Forums: done
New Editor for GRFs: 10%
List feature for own grfs: 0%

Added User ID for GRFs, that means you will be able to edit your files. 100%
(It's not possible to have more than one forum user for a GRF)

So for sets like PBS, who will be responsible for it?
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

eis_os, do you need an author too for when loading my sites contents? We both use the forum user database so that should work.
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Well the Author field is not bind to the forum in my database (so Grfs with multiple Authors can be managed and found aswell).

The current structure has an owner of the entry and this owner is the forum user id...
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
Dinges
Tycoon
Tycoon
Posts: 2865
Joined: 07 Jan 2003 18:00
Location: Fryslân Boppe!
Contact:

Post by Dinges »

What about auto added graphics from my site, how will those be searched?
Dinges

Who is the other person in me?

my Blog (dutch) - my Last.fm profile

Owner of http://ttdgraphics.cjb.net/ ! Temp addr: http://ttdgraphics.owenrudge.com/
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Well they come into an extra database (as it is currently) and can't be edited... If you like it shouldn't be hard to show the Author...
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
User avatar
eis_os
TTDPatch Developer
TTDPatch Developer
Posts: 3603
Joined: 07 Mar 2003 13:10
Location: Germany
Contact:

Post by eis_os »

Ok, Uploading and Editing (like in the old version does work again).

What GRF - Categories should GRFCrawler provide?

Uncategorized
Vehicle Sets
Stations
Houses
TTDPatch dev in retirement ... Search a grf, try Grf Crawler 0.9 - now with even faster details view and new features...
Image
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 17 guests