Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Convert Alice worlds to Windows.exe for free without MAMA (how to)
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default Convert Alice worlds to Windows.exe for free without MAMA (how to) - 09-26-2011, 09:43 AM

To do this you're going to need to make your world and package it into a .jar.

Than if my theory is correct you just need to create a C# program that does one thing. Here's the code for it:

Code:
public class JarToExe{

public static void main(String[] args){

     System.Process.Start("java -jar MyAliceWorld.jar");
}
}
Hopefully this will compile into a windows .exe file that will run your alice .jar file. With a few modifications I should be able to make this an easy to customize software that will make it so that people just type of the name of their .jar in a .txt file and than my program will do the rest.

EX: Suppose we have 3 files in this folder of ours. CrappyAliceGame.jar, JarToRun.txt, and Program.exe. Well we just rename Program.exe to something like CrappyAliceGame.exe, and than inside of our 'JarToRun.txt' we just type 'CrappyAliceGame.jar'. Than the source code of my program would get the .txt file data and use it to run the .jar like so:

Code:
using System;

public class Program{

    public static void main(String[] args){

        String Command = "";
        TextReader TR = new TextReader("JarToRun.txt");
        Command = TR.ReadLine();
        Command = "java -jar " + Command;
        Process.Start(Command);
        
}
}
Again Havn't Tested, don't know if it works YET XD
   
Reply With Quote
Old
DensetsuNoKaboom
Senior Member
 
DensetsuNoKaboom's Avatar
 
Status: Offline
Posts: 1,188
Join Date: May 2010
Location: e4eaf2
Default 09-26-2011, 01:48 PM

Someone should test to see if it works.


Thank you for taking the time to read this signature. This signature loves you.
   
Reply With Quote
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Default 09-26-2011, 02:45 PM

This would not work as worlds are not in the format of Java programs and they are already zip files (equivalent to jars). You cannot make an Alice world standalone without taking parts of the Alice source code as Alice is required to run worlds, this is what Mama does as Meirs knew what he was doing with the source code - but I dont think anyone else does.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [¬º-°]¬
   
Reply With Quote
Old
waqar
Senior Member
 
Status: Offline
Posts: 51
Join Date: Sep 2011
Location: Pakistan
Default 12-03-2011, 10:18 PM

What is mama and what is its abbreviation?
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,145
Join Date: Dec 2010
Location: N/A
Default 12-04-2011, 11:29 AM

Quote:
Originally Posted by arty-fishL View Post
This would not work as worlds are not in the format of Java programs and they are already zip files (equivalent to jars). You cannot make an Alice world standalone without taking parts of the Alice source code as Alice is required to run worlds, this is what Mama does as Meirs knew what he was doing with the source code - but I dont think anyone else does.
Really? I always thought that Alice project files (.a2w) were a just a zip folder that contained a .jar file that was somehow responsible for what goes on in the program.
   
Reply With Quote
Reply

Thread Tools
Display Modes

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



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.