3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1] 2

Author Topic: Moleboxing multilevel projects?  (Read 5016 times)

« on: October 10, 2009, 01:03:18 AM »
I have two projects which switch between each other using the ExitFade object.
The compiled version of this works perfectly. However, when I 'molebox' the whole lot together and test the resulting .exe by activating the ExitFade, then my app. exits instead of switching. I stress again.....the compiled version works exactly as it should.

If anyone has moleboxed some multi-levels successfully then please could you let me know how it was accomplished.

I am using MoleBox Pro 2.3661
AKA: The 3D Raddict http://www.3draddict.com/

psikotropico

« Reply #1 on: October 10, 2009, 01:31:34 AM »
you can solve this just keeping your projects folder un-moleboxed... I know... this is not a complete game protection... the projects must be moleboxed... I'm looking for the solution too.

Fernando, could you explain us in a few steps the correct procedure to molebox a multilevel game? A short tutorial would be great...  ::)

thanks in advance!
« Reply #2 on: October 10, 2009, 05:32:31 AM »
I eventually got it to work !

Here, in a nutshell, is what I did:

1) Compile the multi-project using 3DRad Compiler
2) Test the compiled .exe to see that you can switch between all your seperate projects.
3) If OK, then create an empty folder for your final moleboxed application
4) Start MoleBox Pro
5) Set the "Executable" to be your recently compiled .exe in (2) above
6) Set "Pack to" to a suitable .exe name (of your own choice) on the recently created folder in (3) above
7) Set the "Select package" to Default Package(executable)
8.) Activate the "Set FLAT mode" button
9) Activate the "Open root folder" button
10) From the dialog that opens up, drag the dll3impact.dll, your compiled .exe and the whole 3DRad_res folder (EXCLUDING the projects folder) to the ROOT in the lefthand pane.
11) Now activate the "Pack to box" button.
12) Use Explorer to check that your packed selection is now in your folder created in (3) above
13) Now, still in Explorer, drag, from your compiled folder, the 3DRad_res/projects folder (containing all your multiproject .3dr files) to your new packed folder.
14) Test your packed .exe by running it, and you should be able to switch between your various projects.
15) HOWEVER......your project files are still accessible by anybody, which you do NOT want !
16) To solve this, you must go back to MoleBox and configure an extra package which will include all your .3dr files.
17) To do this, activate the "Configure" button
18) In the popup dialog, under entry "File name pattern", change the "*.*" to "*.dat"
19) In the same popup, activate the "Create" button. Another popup "Package options" appears.
20) Enter "All Projects" as the Description
21) Enter "projects.dat" as the File name
22) Accept the default encryption options and Close the popup
23) When back in the main MoleBox window, under "Select package" you should now be able to select your newly created "All Projects" package
24) Activate the "Set FLAT mode" button
25) Activate the "Open root folder" button
26) From the dialog that opens up, drag only your 3DRad_res/projects to the ROOT in the lefthand pane
27) Now activate the "Pack to box" button.
28) Your packed project folder should now contain an extra file called "projects.dat"
29) Delete your .3dr files that are still in your packed project folder (see (13) (14) (15) above)
30) You should now be able to run your packed project .exe AND switch between projects AND have all your .3dr files unavailable for prying eyes !

Hope that all this is not too confusing...... anyway, it works for me......which makes me very happy !
AKA: The 3D Raddict http://www.3draddict.com/

psikotropico

« Reply #3 on: October 10, 2009, 06:01:37 AM »
Ahhhhh... thanks very much AllanF... I've got the trick... an extra package only for projects... great!

PD: copying/pasting to a txt file and save it in a safe place...  ;D ;D ;D ;D
« Reply #4 on: October 10, 2009, 11:45:55 AM »
Mike, you are 100% correct.

I must have been doing some little wrong thing on my previous attempts. The method you describe is what I have been doing for all my other single level projects, and everything has gone smoothly. As described in my initial post......I came up with this problem only when trying to molebox the multi projects. I followed the same procedure, but obviously I missed a step somewhere(?).

Anyway, after reading your post, I tried the simple procedure (as you described) again and,lo and behold, it worked.

BTW,the PRO version allows packing of  dlls.

All that work for nothing......oh well :-[
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #5 on: October 10, 2009, 10:17:22 PM »
A final important note : You MUST have the 3DRad_res folder present in your boxed folder (even though it may be empty,  as the PRO version also packs the dlls and so they can also be removed from the 3DRad_res folder, thus leaving it empty)

As a final test I removed the 3DRad_res folder from my successfully working boxed folder, and I ended up with my original problem : not being able to switch between projects.
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #6 on: December 25, 2009, 10:35:20 AM »
If I execute the packed exe I get the error: failed to load dll3impact.dll
I added the file to the root. What did I do wrong?
FPS game creator for 3drad and >2000 games GamesAtNight

psikotropico

« Reply #7 on: December 25, 2009, 10:46:00 AM »
I added the file to the root. What did I do wrong?

do not include the dll3impact.dll in the molebox process...
« Reply #8 on: December 25, 2009, 11:36:08 AM »
Molebox needs files present on disk to work with 3drad multilevel projects. This method does not fail:

1) Molebox everything on your compiled project folder and everything inside each sub folder.  Do this by dragging the 3drad_res and other folders to the molebox window (timesaver tip courtesy of loop).
 
2) Create an empty version of 3drad_res folder tree.  Copy first your 3drad_res folder tree to another location and open a command window one level up there. Type "del *.* /s /q". This will leave you with a folder tree with folders but no files.

3) Put this empty tree along with your compiled exe distribution, outside the moleboxed files, of course.

 
« Reply #9 on: December 25, 2009, 11:47:21 AM »
Type "del *.* /s /q". This will leave you with a folder tree with folders but no files.

WARNING!!!

Jdebroy, you dont give this kind of advices in the forum of an application that its most distinguished virtue is basically point and click.  :P

note for everyone else:
if you execute that command (del *.* /s /q) in the wrong folder you gonna cut your family jewels after.
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #10 on: December 25, 2009, 02:18:32 PM »
nope, does not work. It only works with the projects in the projects folder and the directx files next to the molebox file. Useless.
Any alternatives?
FPS game creator for 3drad and >2000 games GamesAtNight
« Reply #11 on: December 25, 2009, 02:23:58 PM »
are we always talking about multilevel games?

because I havent tried those but with single level games the only files I need to left out the molebox are:

dll3impact.dll

and the folders:
Microsoft.VC80.ATL
Microsoft.VC80.CRT
Microsoft.VC80.MFC
Microsoft.VC80.MFCLOC
Microsoft.VC80.OPENMP

these files are recommended to allow users configuration:
settings
windowed
controls
Crashing Boxes - winner of the 3d games category at the 5th Uruguayan video game contest
get a copy for your iPad/iPhone!
« Reply #12 on: December 25, 2009, 11:10:28 PM »
I've had no problems using Molebox Pro with single level projects.
Loop, are you using the PRO version? Because I pack ALL dlls (including dll3impact.dll) using this version.

This post originated because I was having problems with multilevel projects, and which are now sorted out (as this post concludes). By the way, MH's comments have been deleted, but they were also positive about Molebox.

Concerning Osakit and Molebox:
As far as I am concerned, Osakit sucks from the first time I attempted to use it, and I've not touched it since!
AKA: The 3D Raddict http://www.3draddict.com/
« Reply #13 on: December 26, 2009, 10:00:51 PM »
Hey loop, that information is public domain and available to every windows user. I assume that here we are professional developers, not housewives from the 50s.
It is better to know  what you can do with a readily available tool. And sure, a kitchen knive is dangerous as well.
DOS tools are very powerful indeed.

« Reply #14 on: December 27, 2009, 03:29:41 AM »
Molebox changed their licensing ? Certainly not $99 anymore.
http://www.molebox.com/order.shtml
Pages: [1] 2