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
  #2  
Old 02-25-2007, 04:45 PM
Mys Mys is offline
 
Join Date: Jun 2006
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, thank you, thank you!

This solved many issues with no score games in my arcade.
Reply With Quote
  #3  
Old 02-26-2007, 02:12 PM
Stifmeister2 Stifmeister2 is offline
 
Join Date: Feb 2006
Location: Finland
Posts: 755
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are these instructions how to make those new "more secure games"?
Reply With Quote
  #4  
Old 02-26-2007, 07:47 PM
JeremyStCyr JeremyStCyr is offline
 
Join Date: Mar 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

These instruction are for both v2games & v32games, v32games are more recommended since there harder to cheat on.
Reply With Quote
  #5  
Old 03-08-2007, 11:07 AM
Kacela's Avatar
Kacela Kacela is offline
 
Join Date: Mar 2005
Location: Connecticut, USA
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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?
Reply With Quote
  #6  
Old 06-01-2007, 03:12 AM
sinistergaming's Avatar
sinistergaming sinistergaming is offline
 
Join Date: Jan 2007
Location: WorldWide
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work for games that arent fomated for v3,or anything just a swf file
Reply With Quote
  #7  
Old 07-03-2007, 09:06 PM
okgaz okgaz is offline
 
Join Date: Jun 2007
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm confused about the textfile bit, he says to "make a text file with this code in it" but never gives the code?
Reply With Quote
  #8  
Old 07-06-2007, 04:13 PM
Angel-Pie Angel-Pie is offline
 
Join Date: Apr 2007
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok umm im sure i will need this its just understanding it lol
Reply With Quote
  #9  
Old 07-31-2007, 04:23 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

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!
Reply With Quote
  #10  
Old 08-06-2007, 11:32 PM
tminus's Avatar
tminus tminus is offline
 
Join Date: Apr 2007
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cheat-master30 View Post
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 ***
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:25 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.05333 seconds
  • Memory Usage 2,323KB
  • Queries Executed 24 (?)
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
  • (6)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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