Go Back   vb.org Archive > vBulletin Modifications > Premium Modifications > ibProArcade
FAQ Community Calendar Today's Posts Search

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
  #12  
Old 08-12-2007, 09:47 PM
cheat-master30's Avatar
cheat-master30 cheat-master30 is offline
 
Join Date: Mar 2007
Location: Information Classified
Posts: 1,715
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind, ignore what I said. Didn't post this earlier since I was on holiday.

Quote:
Originally Posted by tminus View Post
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 ***
Oh, and I doubt the button is just an example button. He released it as a game at the official site, and some others. Which got like a 1 star rating from everyone for semi obvious reasons of not being a game. Oh well.
Reply With Quote
  #13  
Old 09-17-2007, 01:00 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to converting to v32?
Reply With Quote
  #14  
Old 12-13-2007, 08:43 AM
GouroB GouroB is offline
 
Join Date: Feb 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need some stickcricket like cricket games please..
And the game "Bubbles" .. Thank you.
Reply With Quote
  #15  
Old 03-30-2008, 12:26 PM
Strik3 Strik3 is offline
 
Join Date: Aug 2007
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a coding-noob , can anyone give me some tipps for an easy tool to convert some (free) games?
Reply With Quote
  #16  
Old 04-25-2008, 08:09 AM
Jasem's Avatar
Jasem Jasem is offline
 
Join Date: Feb 2006
Location: www.menokia.com
Posts: 594
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mys View Post
Thank you, thank you, thank you!

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

Thank you, :up:
Reply With Quote
  #17  
Old 08-02-2008, 02:19 PM
Bravo Bravo is offline
 
Join Date: Nov 2006
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how can this work with the vbulletin version?

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");
    };
the file it submits and verifys is the ipb version url
"index.php?autocom=arcade&dp=verifyscore"

Im trying to understand this so I can make none v32games into v32games for the vb version
Reply With Quote
  #18  
Old 02-11-2009, 01:17 AM
rapidphim rapidphim is offline
 
Join Date: Feb 2007
Posts: 733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can someone please have a good instruction on how to convert ipb game to vb games?
Reply With Quote
  #19  
Old 03-13-2009, 12:48 PM
AshMagic AshMagic is offline
 
Join Date: Nov 2008
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you have to edit the actual Flash files to do this?
Reply With Quote
  #20  
Old 04-23-2010, 04:37 AM
Peter Lo Peter Lo is offline
 
Join Date: Feb 2007
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JeremyStCyr View Post
Any problems feel free to post, any game request? Post away as well!
Do you think you could help me with the game conversion here?

https://vborg.vbsupport.ru/showthread.php?t=240927
Reply With Quote
  #21  
Old 08-30-2010, 12:44 PM
redtailboa redtailboa is offline
 
Join Date: Aug 2004
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't have a flash editor. We converted from V3arcade a few days ago, but we no longer have the database entries so the conversion program does not work. I can send you the swf files via email. Anyone wanna help me out?
Reply With Quote
Reply


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 04:02 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.04768 seconds
  • Memory Usage 2,339KB
  • Queries Executed 26 (?)
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
  • (3)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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