Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (SBGuy), 712 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
online scoreboard help #440739
04/30/14 19:54
04/30/14 19:54
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hi, I think this is more for people who have used fogman's online scoreboard - but maybe not so please keep reading laugh

I have successfully implemented fogman's online scoreboard into my game, and it works fine -> If I don't use an important feature.

Code:
webscore_send(name_1_str,"textfile",str_for_num(NULL,score_count),str_for_num(NULL,stage_count));



What you see here ^^ is what I would like to send (score and stage)

When returning values
Code:
return_code=webscore_get("temp.txt","textfile");



Both Score and Stage return as stage.

If However, I set only one or the other
Code:
webscore_send(name_1_str,"textfile",str_for_num(NULL,score_count),"");



This returns the score.

and if I swap "" with stage_count it gives the proper stage.

Never both frown

Both gives me 2 stage counts

Last edited by DLively; 04/30/14 20:27.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: online scoreboard help [Re: DLively] #440740
04/30/14 20:29
04/30/14 20:29
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Some more code would be helpful xD
IDK this fogman code, I did it myself since my friend loves php^^
EDIT: Would be nice to know whats in return_code and how you split the information (code)

Last edited by Ch40zzC0d3r; 04/30/14 20:59.
Re: online scoreboard help [Re: Ch40zzC0d3r] #440741
04/30/14 21:04
04/30/14 21:04
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: online scoreboard help [Re: DLively] #440745
04/30/14 23:05
04/30/14 23:05
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Look at this:
Code:
STRING* webscore_get_index(STRING* line,var index)
{
STRING* temp=str_create("");
str_for_asc(temp,1);
return explode(temp,line,index);
}



This is splitting your return string. Maybe wrong splitter or something. Just debug a little laugh

Re: online scoreboard help [Re: Ch40zzC0d3r] #440747
05/01/14 00:28
05/01/14 00:28
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Im so sorry, but I just don't understand frown

Quote:
This is splitting your return string. Maybe wrong splitter or something. Just debug a littl

Are you suggesting that you see the answer to the problem? tongue

Last edited by DLively; 05/01/14 00:28.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: online scoreboard help [Re: DLively] #440752
05/01/14 08:45
05/01/14 08:45
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Well your splitting your string wrong or something, just print out what your php script returns and then print out how it looks after each splitting func call.

Re: online scoreboard help [Re: Ch40zzC0d3r] #440781
05/02/14 01:36
05/02/14 01:36
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Does anyone know of an online scoreboard tutorial?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: online scoreboard help [Re: DLively] #440783
05/02/14 05:47
05/02/14 05:47
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
BTW, with further research I've discovered this was not fogmans script.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: online scoreboard help [Re: DLively] #440787
05/02/14 09:31
05/02/14 09:31
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
You dont need a tutorial lol.
Just think what you need.
A server with some scripts (mainly php) + a SQL databank to save your servers.
Now you just need to connect to your php script, use the 3DGS "get" functions to read the return of your php script.

Re: online scoreboard help [Re: Ch40zzC0d3r] #440811
05/02/14 18:25
05/02/14 18:25
Joined: Jul 2001
Posts: 4,801
netherlands
Realspawn Offline

Expert
Realspawn  Offline

Expert

Joined: Jul 2001
Posts: 4,801
netherlands
I would like to see a clear example how this all works laugh
as a non coder it would be great to create a little workshop out of it after all many people would like a good working high score in this way laugh

so if someone can enlight me,Dlively and all others who are curious laugh plz don't be shy

Last edited by Realspawn; 05/02/14 18:27.

Find all my tutorials & Workshops at : www.rp-interactive.nl

Creativity starts in the brain
Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1