Upload score - Multiple score send chart with alarin

Help center. Members helping members
Forum rules
This topic is 16 years and 9 months old. Instead of replying, please begin a new topic, or search for another related topic that may be more suitable.
kevinncw
Member
Posts: 7
Joined: November 6th, 2007
Location: Quebec
Reputation: 0

Postby kevinncw » Sun Aug 31, 2008 12:42 pm

If someone say how to upload to this three charts at the same time

World Charts:
uploadurl = http://fretsonfire.sourceforge.net/play

Divra's Charts:

Without star power:
uploadurl = http://www.wembley1967.com/chart/nosp/guitar/upload.php

Guitar/Bass/Drums with star power:
uploadurl = http://www.wembley1967.com/chart/uploadsp.php

raph's score charts:
* uploadurl = http://www.phonotheque.ca/chart/play.php
Last edited by kevinncw on Sun Aug 31, 2008 2:05 pm, edited 1 time in total.
User avatar
Azzco
Member
Posts: 1308
Joined: August 15th, 2007
Location: Trelleborg, Scania, Sweden
Reputation: 0
Contact:

Postby Azzco » Sun Aug 31, 2008 1:42 pm

3 board? do you mean 3 boards or free board? (Write in english please...)
I guess you meant 3 boards.

Anyways you're just trying to advertise the chart locations? raph allready did that, check the high score discussion section.

Could you please just read through the post before you hit the Quick Post button? I don't recall a file called fretonfire.ini at all. :S
Image
(k)Ubuntu 8.10 skyscraper 2.6.27-11-generic i686 GNU/Linux KDE 4.2.0
It's not like I dislike sleeping, I really do like it to be honest. It's the whole wake up/go to sleep business I don't like.
2 + 2 = 5
MarvinPA
Member
Posts: 3273
Joined: December 23rd, 2007
Location: Not in Portland
Reputation: 0

Postby MarvinPA » Sun Aug 31, 2008 1:47 pm

I think he means how to upload to three charts at the same time
User avatar
Azzco
Member
Posts: 1308
Joined: August 15th, 2007
Location: Trelleborg, Scania, Sweden
Reputation: 0
Contact:

Postby Azzco » Sun Aug 31, 2008 2:29 pm

Ahh he edited post. :)
Yeah that is a good question :s
Image
(k)Ubuntu 8.10 skyscraper 2.6.27-11-generic i686 GNU/Linux KDE 4.2.0
It's not like I dislike sleeping, I really do like it to be honest. It's the whole wake up/go to sleep business I don't like.
not a robot
User avatar
raph666
Administrator
Posts: 2428
Joined: March 9th, 2007
Location: dans la mer du nord
Reputation: 20
Contact:

Postby raph666 » Sun Aug 31, 2008 3:12 pm

See this post: https://www.fretsonfire.org/cgi-bin....ry61953
Divra wrote:It's all copying :)
From

Code: Select all

fn = lambda: self.song.info.uploadHighscores(self.engine.config.get("game", "uploadurl"), self.song.getHash())
self.engine.resource.load(self, "uploadResult", fn)

To

Code: Select all

fn = lambda: self.song.info.uploadHighscores(self.engine.config.get("game", "uploadurl"), self.song.getHash())
self.engine.resource.load(self, "uploadResult", fn)
fn2 = lambda: self.song.info.uploadHighscores(self.engine.config.get("game", "uploadurl2"), self.song.getHash())
self.engine.resource.load(self, "uploadResult", fn2)
fn3 = lambda: self.song.info.uploadHighscores(self.engine.config.get("game", "uploadurl3"), self.song.getHash())
self.engine.resource.load(self, "uploadResult", fn3)

Alarian runs on source so you can easily edit the file (GameResultsScene.py) yourself. The uploadscore code is fairly the same in Alarian. I think Divra refined his method later but I have more than tested the first "copy paste" method and it works good enough.

Don't forget to edit your fretsonfire.ini (note that these URLs are old and don't work anymore):
Divra wrote:add the URLs in fretsonfire.ini.
This is what I use, it uploads to the official chart, 'our chart' and mine:

Code: Select all

uploadurl = http://fretsonfire.sourceforge.net/play
uploadurl2 = http://charts.fretsonfire.net/fretsonfire/play
uploadurl3 = http://chart.gamingrecon.com/upload.php
Last edited by raph666 on Sun Aug 31, 2008 3:14 pm, edited 1 time in total.
kevinncw
Member
Posts: 7
Joined: November 6th, 2007
Location: Quebec
Reputation: 0

Postby kevinncw » Sun Aug 31, 2008 7:05 pm

Solution:
add in GameEngine.py (inside library.zip)

Config.define("game", "uploadurl_starpower", str, "http://www.wembley1967.com/chart/uploadsp.php")
Config.define("game", "uploadurl2", str, "http://www.phonotheque.ca/chart/play.php")

add in GameResultsscene.py (inside library.zip)

fn = lambda: self.song.info.uploadHighscores(self.engine.config.get("game", "uploadurl_starpower"), self.song.getHash(), part = player.part)

fn2 = lambda: self.song.info.uploadHighscores(self.engine.config.get("game", "uploadurl2"), self.song.getHash(), part = player.part)

self.engine.resource.load(self, "uploadResult", fn)
self.engine.resource.load(self, "uploadResult", fn2)
Last edited by kevinncw on Mon Sep 01, 2008 12:55 am, edited 1 time in total.

Return to “Tech Support”

Who is online

Users browsing this forum: No registered users and 28 guests