The Daily Click ::. Forums ::. Klik Coding Help ::. Ok guys, Tim needs you ;_;
 

Post Reply  Post Oekaki 
 

Posted By Message

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
3rd November, 2007 at 20:38:03 -

Right, we've been having so much trouble with this thing...

Image

I've even taken out the use of any edit boxes and I'm JUST sending that one line, but nothing's happening! It all works fine without using MMF (obviously ¬_¬)!

What am I missing here? Something simple? :| Other highscore tables work, but not this one. Why?!!! MMF just isn't having any of it ;_;

 
http://www.SilverNova.co.uk


Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
3rd November, 2007 at 21:25:14 -

What exactly is the problem?

 
My signature is never too big!!!

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
4th November, 2007 at 01:20:56 -

If you haven't already, you might want to do some simple debugging. Make a counter and put it in the frame. In the event editor, make the event "set newcounter to 1" in the condition "Start of Frame". Run the app and make sure the counter shows 1. If it does, then move the new event down to the next condition "Upon pressing 'Enter'". Do that through your code and make sure MMF is getting to all of your code.

Image Edited by the Author.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Johnny Look

One Happy Dude

Registered
  14/05/2006
Points
  2942

VIP Member
4th November, 2007 at 05:34:53 -

Tim I want to help you. Tell me what's the problem

 
n/a

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 05:49:06 -

Sorry I thought that was obvious It's not submitting to the site through using MMF2, but it is by doing it manually.

 
http://www.SilverNova.co.uk


Nick of All Trades

Possibly Insane

Registered
  03/09/2002
Points
  2312

Game of the Week Winner
4th November, 2007 at 06:19:58 -

I am certainly not an expert at this kind of problems, but I would certainly hate to disconnect at the same time I need to be connected, even if it is "run this event once".

But then again, it's just me. Perhaps you should try and enlighten us of what you have tried so far.

 
n/a

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
4th November, 2007 at 08:08:29 -

Doesn't there need to be a space after POST? And before HTTP/1.0?

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
4th November, 2007 at 08:13:33 -

Nope.

Tim, are you telling what game to send a score for?

 
My signature is never too big!!!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 10:05:53 -

Yeah it's a seperate mysql table, and the file it uses is specifically for that game.

Stuff like that is fine, because when you copy and paste that link it connects and goes to, in the browser, then it works fine! It's just not going from MMF to the internet!?

 
http://www.SilverNova.co.uk


lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
4th November, 2007 at 10:28:01 -

sounds stupid i know but should there be a http:// in the address after POST?

 
n/a

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
4th November, 2007 at 10:30:57 -

it shouldn't need it.

Does it work when you compile the game?

 
My signature is never too big!!!

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
4th November, 2007 at 10:41:33 -

This is probably an incorrect use of HTTP.
Try to send this line:
Host: silvernova.co.uk

 
Service Unavailable

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 13:20:34 -


Originally Posted by LIJIothy
This is probably an incorrect use of HTTP.
Try to send this line:
Host: silvernova.co.uk



Is that instead of "User-Agent: HTTPTool/1.0" ?

edit: ... that didn't work

Image Edited by the Author.

 
http://www.SilverNova.co.uk


Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  254

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
4th November, 2007 at 13:29:50 -

Actually you only need host: if you're using http/1.1 spec

You dont seem to have a space after POST and the URI, unless im missing something


Also, if you're using post you should specify a data length and include the variables afterwards, see:

POST /jr_addhighscore.php HTTP/1.1
Host: www.silvernova.co.uk
Content-Length: 29
<blank line>
?name=pooface&time=300&zone=3
<blank line>

Or if you're using get,

GET http://www.silvernova.co.uk/jr_addhighscore.php?name=pooface&time=300&zone=3 HTTP/1.0
<blank line>


 
.: ImageApocalyptic Coders - www.acoders.com :.

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 13:44:36 -

Hmm could you better explain what you mean please Clubby? <3 Type it out all noob-ish like and stuff? I sorta get what you mean... I think! Just wanna make sure though, thanks man

 
http://www.SilverNova.co.uk


Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
4th November, 2007 at 13:47:25 -

Send text line: "POST /jr_addhighscore.php HTTP/1.1"
Send text line: "Host: www.silvernova.co.uk"
Send text line: "Content-Length: 29"
Send Text line: ""
Send text line: "?name=pooface&time=300&zone=3"
Send text line: ""

But yeah.

Does it work when you compile it?

 
My signature is never too big!!!

Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  254

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
4th November, 2007 at 13:49:34 -

The requests just need to look like that

To be honest, GET is probably easier to do, as POST requires you to calculate how long the data is you're sending first, with the PHP script though you'd have to use $_REQUEST["variablename"] instead of $_POST["variablename"]

If you use GET, just use the following:

Send Text Line "GET http://www.silvernova.co.uk/jr_addhighscore.php?name=pooface&time=300&zone=3 HTTP/1.0"
Send Text Line ""

Might be worth sending two blank lines and the end, some servers dont do anything with just one (due to differences with CR and LF)


If you don't want to use the GET method, you can use post, and do the following:

Send Text line "POST /jr_addhighscore.php HTTP/1.1"
Send Text Line "Host: www.silvernova.co.uk"
Send Text Line "Content-Length: " + (insert calculation here to calculate how many charactors are in your post data - 29 in this case)
Send Text Line ""
Send Text Line "?name=pooface&time=300&zone=3"
Send Text Line ""

Again, might be worth usign two blank lines intead of one to see if that makes any difference

 
.: ImageApocalyptic Coders - www.acoders.com :.

Clubsoft

Administrator
Weeeeeeee

Registered
  02/12/2001
Points
  254

Acoders MemberHas Donated, Thank You!May contain nutsVIP Member360 OwnerI'm an alien!Code Monkey
4th November, 2007 at 13:52:33 -

Oh, and make sure everything in the post data variables is url encoded when you send it, eg if its a name make sure spaces are changed to %20, and so forth all none alpha-numeric characters - should just change them to a % then the hexidecimal representation of the charactors ascii code, eg "?name=poo face" would have to be "?name=poo%20face". Alternatively, just filter out all none-alphanumeric charactors instead of having to write code to convert them to their url encoded values

Image Edited by an Administrator.

 
.: ImageApocalyptic Coders - www.acoders.com :.

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
4th November, 2007 at 14:04:36 -

Use this as your packet:
POST jr_addhighscore.php
Host: Silvernova.co.uk
Content-Length: str$(len("?name=pooface&time=300&zone=3"))
---
?name=pooface&time=300&zone=3
---

Basically what Clubby said
--- are empty lines.

 
Service Unavailable

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
4th November, 2007 at 14:04:43 -

See my post mr clubsoft.

 
My signature is never too big!!!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 15:29:33 -

I used GET and it worked like a charm

LOVE YOU GUYS ;_;

 
http://www.SilverNova.co.uk


LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
4th November, 2007 at 16:34:48 -

Btw, stop abusing the JPG format Tim! >

 
Service Unavailable

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 17:05:24 -

CBA to use PNG! I actually compressed that pic in paint (Vista), and it looks just as good as a png, so HMPH! >

 
http://www.SilverNova.co.uk


-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
4th November, 2007 at 17:30:39 -


Originally Posted by Timothy
CBA to use PNG! I actually compressed that pic in paint (Vista), and it almost looks just as good as a png, so HMPH! >




 
Image

Tell 'em Babs is 'ere...

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
4th November, 2007 at 18:40:13 -

Hey, I never said that

 
http://www.SilverNova.co.uk


LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
5th November, 2007 at 04:39:27 -

It's just 2 clicks!
And if you say it looks as good in JPG then you're blind!
Take a closer look.
PNG will also save you a few KB disk space.

 
Service Unavailable
   

Post Reply



 



Advertisement

Worth A Click