Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - deviltry

Pages: [1]
1
Technical forum / Game.Reset doesn't close response box
« on: November 05, 2008, 09:51:36 PM »
Hello,

I've got a problem with the response box.
When pressing ESC in the game the menu opens. There I can start a totally new game. I use the Game.Reset() comment to make sure, a new game won't be messed up by some already changed variables etc. I thought it resets everything back to starting position.
Now when I press ESC while the response box is open, the same should be possible. But the response box will stay open when I start a new game. When selecting one of the responses the game crashes of course.

I thought maybe the response box stays open because the DlgBranch hasen't been closed.
I tried to ask for any open DlgBranch and end it by something like this:

Code: [Select]
var res = Game.GetCurrentDlgBranch();
if(res != null) Game.EndDlgBranch(res);

But it doesn't seem to do anything.

I also tried to close the response box manually. Window.Close() and Window.Visible = false hide it, but it still seems to be exclusive for I can't interact with the game anymore. Game.UnloadObject() doesn't help either.

The only way I found to avoid this problem is not allowing to open the menu while the response box is visible. But that's a quite ugly solution imo :(

Please help!  ???

2
Technical forum / include exe.files?
« on: July 07, 2008, 09:04:56 AM »
Good morning  :)

Is it possible to include one exe file into another?
The idea is to develop some mini-games in seperate projects and somehow "import" them into the main project.

Pages: [1]

Page created in 0.056 seconds with 22 queries.