B4J Question [ Steam Client ] Closes the Form, but doesn't kill the application .

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
I'm making a game for steam ( steampowered.com ) it works fine, but when I try to "kill" the game via SteamClient by clicking on "Stop Run",


the Form closes, but the application keeps running and it's only killed when I I go to the B4J client and click on "Kill Process", is there any way I can handle the request to close the game by the steam client?

 

William Lancee

Well-Known Member
Licensed User
Longtime User
I looked at your code, and what sticks out for me as for @LucaMs is the B4XPages.ShowPageAndRemovePreviousPages

It rare that you need to RemovePreviousPages in B4Xpages. In fact I don't recall having to use it.

Why don't you ty it with just ShowPage. Think of them being in a stack (which they are) that they behave quite orderly.

Unfortunately, even with downloading the Libraries, I could not get SteamWorks to work. I'm afraid I can't take time to find out why.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
do u have steam client installed on your PC ?
Maybe you could explain it all better, from the beginning.

Now you ask if he/we have a Steam client installed, but from what you've written so far it was clear that you wanted to create a client for a (that) game server (but in the video you use a browser, if I'm not mistaken).

So... we just don't know how this is supposed to work, what the purpose of your B4J project is and... everything, in short.

I looked at your code, and what sticks out for me as for @LucaMs is the B4XPages.ShowPageAndRemovePreviousPages
I had forgotten about it and above all initially I did not realize that it was B4XPages-B4J.
In this case, to have a single page-form open, it is necessary to use ShowPageAndRemovePreviousPages. To return to the previous page later, however, it is necessary to open it explicitly, using ShowOpen ("mainpage"), in this case.
 
Upvote 0

Waldemar Lima

Well-Known Member
Licensed User
Longtime User
hello All !

received a reply from the Steam support team >


is there any way to treat or differentiate between a WM_CLOSE or if it was a user click on the window's close button?
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
I don't know. But you should put some logs in the Main module MainForm_Closed and MainForm_CloseRequest.

Run you App from the IDE. You should see the App being killed at the bottom in the Log panel.

If no logs then you're out of luck.

[note that the topic of this thread has deviated from the question]
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…