Go Back   vb.org Archive > vBulletin Modifications > Premium Modifications > ibProArcade

Reply
 
Thread Tools
How to convert games Details »»
How to convert games
Version: , by JeremyStCyr JeremyStCyr is offline
Developer Last Online: Jan 2016 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 02-24-2007 Last Update: Never Installs: 0
 
No support by the author.

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!

Download Now

File Type: zip WolfClickMadeByJeremyStCyr.zip (30.4 KB, 281 views)
File Type: zip gamers.zip (918.3 KB, 545 views)
File Type: zip GameCodingHelpfulswfFiles.zip (2.2 KB, 225 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-21-2011, 04:25 AM
J-P J-P is offline
 
Join Date: Jan 2011
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok... so I understand a little better, but what do we use to decompile a .swf file? If it was a .fla file I think it can be edited but not a .swf
Reply With Quote
  #23  
Old 02-24-2011, 02:54 AM
SEW810's Avatar
SEW810 SEW810 is offline
 
Join Date: Mar 2008
Location: M?xico City
Posts: 274
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by J-P View Post
Ok... so I understand a little better, but what do we use to decompile a .swf file? If it was a .fla file I think it can be edited but not a .swf
Sothink swf decompiler might be useful dude

Quote:
Originally Posted by JeremyStCyr View Post
...
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

...
what code????? This simple code !!!

Code:
&scoreVar=_root.score&blah=1
Change red variable with swf score variable
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03877 seconds
  • Memory Usage 2,246KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete