Welcome Guest [Log In] [Register]
Welcome to Thunder Services. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
A Very Basic Guide to Converting Games
Topic Started: July 7, 2006, 2:59 pm (5,981 Views)
JGuzman
Member Avatar
Mod / Converter

[dohtml]

<p align="center"><br>
<b><font size="5" color="#FF0000">A Very Basic Guide to Converting Games for T.A.</font></b></p>
<p align="center"><b><font color="#FF0000" size="3">by JGuzman</font></b></p>
<p align="center">&nbsp;</p>
<ul>
<li>This guide uses Sothink SWF Quicker as the editor.&nbsp; Do a google
search if you don't have it.</li>
<li>You also need webspace with php capabilities.&nbsp; I'm using
ripway.com.&nbsp; it's an easy free signup.&nbsp; you can use whatever
you want though.</li>
<li>Create a text document on your desktop.&nbsp; Name it index.php.&nbsp; Put
the following code in it:[/dohtml]
Code:
 

<?php
    foreach ($_POST as $key => $value) {
         echo "Key: $key; Value: $value<br
/>\n";
   }
?>

[dohtml]

</li>
<li>Upload index.php to your webspace.</li>
<li>Import the game with Sothink.&nbsp; You must search for the end
screen.&nbsp; In this example, I've decided to use the Enter button to
submit the highscore.&nbsp; Click on it so it's highlighted.&nbsp; Then in
the Action box, type the following code in:
[/dohtml]

function verifyscore()
{
verify = new LoadVars();
verify.from = "yes";
verify.sendAndLoad("scoreverify.php", verify, "POST");
verify.onLoad = function (success)
{
if(success)
{
submit = new LoadVars();
submit.gname = "superfubball_TA";
submit.gscore = _root.score;

submit.escore = submit.gscore * verify["random1"] * verify["random2"];
submit.send("index.php", "_self", "POST");
}
};
};
verifyscore();
[dohtml]
<p align="left">Notice I'm using <font color="#FF0000">superfubball_TA</font>
as my gname.&nbsp; You can make this whatever you want.&nbsp; Refer to
picture below:</p>
<p align="left"><img src="http://img148.imageshack.us/img148/3023/untitled5wd1.png" width="962" height="727"></p>
<p align="left">&nbsp;</li>
<li>
<p align="left">I've also decided that I would like to change the text <font color="#FF0000">Enter</font>
to <font color="#FF0000">submit</font>, so there's no confusion.&nbsp;&nbsp;
So, double-click the word Enter until it's highlighted.&nbsp; Then press the
delete button on your keyboard.&nbsp; The orange button should still be
there.&nbsp; Now click on the text thingie to the left and drag a box to
type in the word Submit.&nbsp; You can move it so it looks nice and
centered.&nbsp; This is also good practice if you come to a game with no
submit button and you want to &quot;borrow&quot; another button in the
game.&nbsp; </li>
</ul>
<blockquote>
<p align="left"><img src="http://img474.imageshack.us/img474/5766/untitled0il.png" width="725" height="616"></p>
</blockquote>
<ul>
<li>
<p align="left">Alright, time to export and upload to your php-supported
webspace.&nbsp; Play the entire game (in this example, you must beat it and
remember your score).&nbsp; Click submit and index.php should open up,
revealing some important information...</li>
<li>
<p align="left">You should get something like this:</p>
<p align="left"><font color="#FF0000">Key: uname; Value:<br>
Key: uscore; Value: 5945<br>
Key: gname; Value: superfubball_TA<br>
Key: gscore; Value: 5945</font></p>
<p align="left">&nbsp;</li>
<li>
<p align="left">What we're doing is trying to determine the gscore
variable.&nbsp; Notice <font color="#FF0000">Key:&nbsp; uscore: Value: 5945</font>.&nbsp;
It's the variable <font color="#FF0000">uscore;</font> that we need for the
game to submit the score properly.&nbsp; </li>
<li>
<p align="left">Go back to Sothink and now replace <font color="#FF0000"> _root.score;</font> with
<font color="#FF0000"> uscore;</font>&nbsp;
Refer to the screenshot below:</li>
</ul>
<blockquote>
<p align="left"><img src="http://img157.imageshack.us/img157/200/untitled3vv.png" width="803" height="441"></p>
</blockquote>
<ul>
<li>
<p align="left">Export the game now and upload it to imageshack or another
image host.&nbsp; And you're done!</li>
<li>
<p align="left">What if the game doesn't have a submit button?&nbsp; Or, for
this example, what if we want the game to submit the score if you die before
reaching the goal?</li>
<li>
<p align="left">If you play the game and kill yourself, you'll notice it'll
bring you to a different screen.&nbsp; In Sothink, find that screen.&nbsp;
What we can do is use the Play again button to submit the score.&nbsp;
Right-click on it and choose <font color="#FF0000">Replace Symbol</font>.</li>
</ul>
<blockquote>
<p align="left"><img src="http://img474.imageshack.us/img474/2930/untitled0go1.png" width="837" height="664"></p>
</blockquote>
<ul>
<li>
<p align="left">You should look up the symbol number you made
previously.&nbsp; For me, it was symbol 187.&nbsp; Find it in this list and
click <font color="#FF0000">Replace</font>.&nbsp; (Notice it gives you a
little preview)</li>
</ul>
<blockquote>
<p align="left"><img src="http://img467.imageshack.us/img467/1941/untitled6up.png" width="1336" height="530"></p>
</blockquote>
<ul>
<li>
<p align="left">You may have to drag the button to where you want it so it's
centered.&nbsp; Next, you have to insert the same submit code into the
Action box.&nbsp; Export the game and upload it.&nbsp; You're done!</li>
</ul>
<blockquote>
<p align="left"><img src="http://img474.imageshack.us/img474/6292/untitled0fx.png" width="933" height="650"></p>
</blockquote>

[/dohtml]
Offline Profile Quote Post Goto Top
 
Luda007
Slasher

Is this topic supposed to look all html like?
Offline Profile Quote Post Goto Top
 
Mike


This is very old, it does not work anymore.
Posted Image
It is back, and better than ever!
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Tutorials · Next Topic »
Add Reply