Computer Science Canada (URGENT) Need help closing window and continuing. |
Author: | kartikitrak [ Tue Jan 04, 2011 6:31 pm ] | ||
Post subject: | (URGENT) Need help closing window and continuing. | ||
What is it you are trying to achieve? I want to be able to close the console cheat engine and be able to continue the game with the cheat applied. What is the problem you are having? I am currently making a platform based game, but I am unable to continue to game when my console cheat feature closes. I understand that my code is still inefficient, but if you want you can comment on that too. I would upload my source code with all the pictures, however my level map itself is 88.3mb(due to its large size). Describe what you have tried to solve this problem I am still a noob(newcomer) to turing, however I still know things. I have tried basic stuff like exit commands, Window methods, and procedures.
Please specify what version of Turing you are using Turing 4.1.1 |
Author: | rdrake [ Tue Jan 04, 2011 6:58 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
Deleted your duplicate thread. Please use the edit button when possible. |
Author: | kartikitrak [ Tue Jan 04, 2011 7:05 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
I'm sorry. I just want some help with this. |
Author: | TokenHerbz [ Tue Jan 04, 2011 7:11 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
Try closing the Cheat window instead of hiding it. Replace "Window.Hide(windowID)" from your cheat proc with "Window.Close(windowID)" |
Author: | kartikitrak [ Tue Jan 04, 2011 7:13 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
Thanks Token for the advice, however I have tried that and it doesn't seem to work. It actually seems worse than the hide because it glitches and still doesn't work. |
Author: | Tony [ Tue Jan 04, 2011 7:16 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
What kind of "unable to continue to game" are you experiencing? It might be that you are not returning the focus to the main window. Some other notes: you are just hiding console windows, they are still there. And you are creating a new one, every time. Also, I don't understand why you have a bunch of loops with a tail-end exit -- they never loop; seems unnecessary. |
Author: | kartikitrak [ Tue Jan 04, 2011 7:18 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
thanks tony. However, I am unable to re-write what you said to me just know it code. I understand somewhat, what you are saying. Also. This is what is happening. I enter console, and then I enter a cheat or just a random text and it should close automatically, however when it closes, you can't resume the actually game play. It just freezes up. |
Author: | kartikitrak [ Tue Jan 04, 2011 7:20 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
When I replace the Window.Hide with Window.Close (winID2), I get an error saying "Close of closed stream number 2" What does this mean? |
Author: | ClayWall [ Tue Jan 04, 2011 7:21 pm ] |
Post subject: | Re: (URGENT) Need help closing window and continuing. |
Take Window.Hide (winID2) out of the loop and put it at the very end of the proc, and if I remember right you will have to use Window.Update on your other window if you are using offscreenonly. Also, why do you have loops with an exit with no exit clause, this makes those loops useless. |
Author: | TokenHerbz [ Tue Jan 04, 2011 7:22 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
Yes, As tony pointed out, you have alot of un needed code in it. Anyways, right at the END of that procedure for your cheat, try to Window.SetActive(mainWINDOW) and let me know what happens, I'll attempt to syphon threw some of this code looking for the error, hope i dont over look it, as its not the easiest to read |
Author: | kartikitrak [ Tue Jan 04, 2011 7:24 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
thanks guy for your constructive criticism. |
Author: | kartikitrak [ Tue Jan 04, 2011 7:26 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
Okay. Token with your tips. Sadly nothing actually changes. I'm sorry if this code is messed up. I'm still a newb at turing. |
Author: | kartikitrak [ Tue Jan 04, 2011 7:28 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
good news guys. I removed the loops and the exits in the console procedures and its resuming. I'm just going to test out if the cheats apply. Anyway. Now please comment on the GUI. and simplifing the code. |
Author: | kartikitrak [ Tue Jan 04, 2011 7:32 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
OMFG!! YOU GUYS ARE THE BEST PEOPLE EVER! IT WORKS PERFECTLY! THANKS TO TOKENHERBZ ,TONY AND CLAYWALL |
Author: | Tony [ Tue Jan 04, 2011 7:38 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
Runtime error I'm getting is "Keyboard input from invisible window is now allowed" TokenHerbz @ Tue Jan 04, 2011 7:22 pm wrote: Anyways, right at the END of that procedure for your cheat, try to Window.SetActive(mainWINDOW) and let me know what happens
I've tried this out, it works. Turing 4.1 through CrossOver. ---- Edit: I seem to be off my game today. I think it's time for a nap. |
Author: | ClayWall [ Tue Jan 04, 2011 7:42 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
To clean up some code take the View.Set ("offscreenonly") out of the loop in you "titlePage" procedure. You would only need it there if you were using View.Set ("onscreenonly") elsewhere in the loop. |
Author: | kartikitrak [ Tue Jan 04, 2011 8:08 pm ] |
Post subject: | RE:(URGENT) Need help closing window and continuing. |
thanks man. I love you guys, cause you're always active. NO HOMO |