vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   ibProArcade (https://vborg.vbsupport.ru/forumdisplay.php?f=170)
-   -   How to convert games (https://vborg.vbsupport.ru/showthread.php?t=140353)

JeremyStCyr 02-24-2007 05:34 PM

How to convert games
 
1 Attachment(s)
Here is a small guide on how to convert games for the ibProArcade

Put this code in the first frame

Code:

_global.ipb_get_gname = function ()
{
    var _loc4 = _root._url;
    var _loc5 = "";
    var _loc2 = "";
    var _loc6 = _loc4.lastIndexOf("\\") + 1;
    if (_loc6 == -1 || _loc6 == 0)
    {
        _loc6 = _loc4.lastIndexOf("/") + 1;
    } // end if
    var _loc3 = _loc6;
    var _loc7 = String(_loc4).length;
    while (_loc3 < String(_loc4).length)    {
        _loc2 = _loc4.charAt(_loc3);
        if (_loc2 == ".")
        {
            break;
        } // end if
        _loc5 = _loc5 + _loc2;
        _loc3++;
    } // end while
    return (_loc5);
};
ipb_gname = _global.ipb_get_gname();
xx = new LoadVars();
xx.onLoad = function (success)
{
    if (success)
    {
        _global.ipb_scoreVar = this.scoreVar;
    } // end if
};
fname = "arcade/gamedata/" + ipb_gname + "/" + ipb_gname + ".txt";
xx.load(fname);


make a new symbol with this code and insert it in the whole frame range

Code:

if (yy.savescore == 1) {
        if (ipb_score == undefined) {
            ipb_score = eval (_global.ipb_scoreVar);
        }
        xx = new LoadVars();
        xx.arcadegid = _root.ibpro_gameid;
        xx.gscore = ipb_score;
        xx.gname = _global.ipb_get_gname();
        xx.enscore = (ipb_score * yy.randchar) ^ yy.randchar2;
        xx.send("index.php?autocom=arcade&do=savescore", "_self", "POST");
        stop();
    }
    _global.ipbSend = function (ipb_score) {
        _root._visible = false;
        _root.enabled = false;
        xx = new LoadVars();
        yy = new LoadVars();
        xx.sendAndLoad("index.php?autocom=arcade&do=verifyscore", yy, "POST");
    };

use this code to submit

Code:

_global.ipbSend();
make a folder inside the gamedata folder called gname
make an empty file called v32game.txt inside that folder
make a text file in that folder called gname.txt with this code in it

replace gname with the gname of the game
replace _root.score with the games scorevar

This is how to convert games with the new arcade 2.5.9 and with the ipb 3.3 arcade mod.
Credits to stlmike and Cyber for the game coding codes!

Next trouble with v32game try a easier type

How to convert games for v2games
These are pretty easy
All you really got to with these is clean the games as in get rid of the unneeded crud and change the button from play again to submit etc.

here is the code for submitting games with v2games

Code:

on (release)
{
  var gname = "SWF FILE NAME";
  var gscore = _root.score;
  getURL("index.php?act=Arcade&do=newscore", "_self", "POST");
}

This would be your button code

Auto Submit

Code:

gscore = _root.score;
gname = "000";
getURL("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();

and here is some example scorevar you could use which alot of games might use :)

Code:

_root.score;
 score;
_root.maxScore
_root.score.miles;
/score:points
muestra_piedras
scorecounter
_parent.totalscore


a few tutorials.

http://teamwolfpack.org/downloads/IPBAguideV1.3.pdf <- Sothink Quicker Converting
http://teamwolfpack.org/downloads/tarcreating.swf - How to create a tar!
http://teamwolfpack.org/downloads/movie.swf - Sothink/UAE mix(v2game converting)

here is a few games for everyone to use on your forum and look at

Best converting tool to use would be URL Action Editor, Action Script Replacer and Sothink Quicker(for buttons)

Also when adding a v32game to your arcade, be sure you have secure scoring option set to yes.

Any problems feel free to post, any game request? Post away as well!

Mys 02-25-2007 04:45 PM

Thank you, thank you, thank you! https://vborg.vbsupport.ru/external/2008/04/4.gif

This solved many issues with no score games in my arcade.

Stifmeister2 02-26-2007 02:12 PM

Are these instructions how to make those new "more secure games"?

JeremyStCyr 02-26-2007 07:47 PM

These instruction are for both v2games & v32games, v32games are more recommended since there harder to cheat on.

Kacela 03-08-2007 11:07 AM

Quote:

Originally Posted by JeremyStCyr (Post 1189841)
make a folder inside the gamedata folder called gname
make an empty file called v32game.txt inside that folder
make a text file in that folder called gname.txt with this code in it

Uhhh... what code? If my gname is 'Asteroids', it should look like this in the file structure?
arcade/gamedata/Asteroids/Asteroids.txt
If this is the case, where does the empty file called v32game.txt go, and what should be in both of these now empty text files?

sinistergaming 06-01-2007 03:12 AM

will this work for games that arent fomated for v3,or anything just a swf file

okgaz 07-03-2007 09:06 PM

I'm confused about the textfile bit, he says to "make a text file with this code in it" but never gives the code?

Angel-Pie 07-06-2007 04:13 PM

ok umm im sure i will need this its just understanding it lol

cheat-master30 07-31-2007 04:23 PM

What's in the Zip files exactly? Because they seem to be games, and if they are, would they be fine to use?

Never mind. Oh, and what's with the Wolfclick one? It's just a button, not a game!

tminus 08-06-2007 11:32 PM

Quote:

Originally Posted by cheat-master30 (Post 1306272)
What's in the Zip files exactly? Because they seem to be games, and if they are, would they be fine to use?

Never mind. Oh, and what's with the Wolfclick one? It's just a button, not a game!

Yeah I think they are authorized sample games for learning conversion and free to use. The button is a Team Wolfpack sample button to use in conversion for score submission I think.

I did look for some open source tools, despite what the article says. I found a couple of things but I can't say if it is possible yet.





For anyone looking for games....
*** Removed ***


All times are GMT. The time now is 07:08 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01267 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (6)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete