Running Simulation Mode programatically
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Running Simulation Mode programatically
by AronaDaal » 06 Oct 2020, 20:23
Hello! I have been working on a project where I build a deck and run a simulation, change, run again, etc. My desire is to run the simulator programmatically. I have attempted a few things to no avail:
1. I have the forge-gui-desktop-1.6.36-jar-with-dependencies.jar in my project was able to access the function:
I figure this is because it needs some dependencies to be initialized first, hence the jar file with dependencies.
2. So I attempted to execute the jar file in the code, however, I have been very unsuccessful trying to execute a jar file programmatically.
So I was hoping, how can I get solution #1 to work? Is there a function I can call to make sure things are initialized before executing the sim mode?
1. I have the forge-gui-desktop-1.6.36-jar-with-dependencies.jar in my project was able to access the function:
- Code: Select all
SimulateMatch.simulate(args);
- Code: Select all
Main.main(args)
I figure this is because it needs some dependencies to be initialized first, hence the jar file with dependencies.
2. So I attempted to execute the jar file in the code, however, I have been very unsuccessful trying to execute a jar file programmatically.
So I was hoping, how can I get solution #1 to work? Is there a function I can call to make sure things are initialized before executing the sim mode?
- AronaDaal
- Posts: 1
- Joined: 06 Oct 2020, 20:14
- Has thanked: 0 time
- Been thanked: 0 time
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 226 guests