Gamestudio Links
Zorro Links
Newest Posts
How to: plot a frequency spectrum in bars?
by Sempervirens. 05/12/21 02:45
Backtest accuracy
by AndrewAMD. 05/12/21 00:26
Test one asset with more bar period in one run
by AndrewAMD. 05/12/21 00:22
System with more take profit
by AndrewAMD. 05/12/21 00:20
EXANTE broker
by madpower2000. 05/11/21 17:02
No Trades when Backtesting Period is longer
by TimmiHendrix. 05/11/21 15:47
Last Candle for Testing and Train?
by jcl. 05/11/21 12:14
DataSplit for Advise
by TimmiHendrix. 05/11/21 10:40
AUM Magazine
Latest Screens
Hecknex World
Scheherazade's Journey
Paradox Vector
The Space Between
Who's Online Now
3 registered members (AndrewAMD, Sempervirens, jyd), 470 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ShadowAx, TimmiHendrix, contactmmfx, msupl7, Robert_
18644 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
multible windows A8 game #483092
05/03/21 21:43
05/03/21 21:43
Joined: Mar 2018
Posts: 13
N
NicolaB Offline OP
Newbie
NicolaB  Offline OP
Newbie
N

Joined: Mar 2018
Posts: 13
Hello!
Is it possible to open a second window that has a different level loaded, but shares the same global vars? I am working on some sort of simulator. One screen shows an airplane on the other screen the instruments, would be the goal.
Any ideas?

Re: multible windows A8 game [Re: NicolaB] #483105
05/04/21 09:06
05/04/21 09:06
Joined: May 2009
Posts: 5,326
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,326
Caucasus
Hey!

I've never done this myself, but recently when I was researching for multimonitor options, I've found out this:
Quote
-mon number P A7.20
In a multi monitor systen, uses the monitor with the given number (1,2,3,...) for fullscreen display, instead of the primary monitor. For using several monitors at the same time, start the main application in server mode (-sv, see below) and start one client application per monitor (-cl -mon).

It's related to the command line, search manual for 'Command line options' (in offline manual you can find it under 'Starting the Engine' section).

Best regards.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Re: multible windows A8 game [Re: 3run] #483107
05/04/21 15:24
05/04/21 15:24
Joined: Mar 2018
Posts: 13
N
NicolaB Offline OP
Newbie
NicolaB  Offline OP
Newbie
N

Joined: Mar 2018
Posts: 13
Hi 3run! Thanks for the quick reply. I thought i have to use server/client thing :-( which is at the moment a bit complicated. A good thing would be, if i can run the client in a different level instead the same level. I tryed to use level_load after if(connection == 2) but the engine stoped working with that :-(

Re: multible windows A8 game [Re: NicolaB] #483110
05/04/21 17:20
05/04/21 17:20
Joined: May 2005
Posts: 834
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 834
Chicago, IL
I am just theorizing, but if you saved all variables to a text file, and read from there, it's possible two applications could reference them. That would be an interesting problem to solve, and you would have to coordinate reading/writing from both applications carefully. Speed might be an issue, but maybe not, it's hard to say without trying it out...

Re: multible windows A8 game [Re: NicolaB] #483111
05/04/21 17:21
05/04/21 17:21
Joined: May 2005
Posts: 834
Chicago, IL
Dooley Offline
User
Dooley  Offline
User

Joined: May 2005
Posts: 834
Chicago, IL
If you could have one application do all the writing, and the other one only reading, that might make things easier.

Re: multible windows A8 game [Re: NicolaB] #483113
05/04/21 18:30
05/04/21 18:30
Joined: May 2009
Posts: 5,326
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,326
Caucasus
It might not be possible to load different levels for server and client at the same time... If that would be the case, I think you could merge those two levels into one. And if I understood correctly, on second screen nothing specials is going to happen (probably most of the things aren't going to move around that much?), so you could build a little level with BSP + PVS (to make things faster), place additional view inside of that small level which will contain all instruments and then handle the airplane flying etc on the primary monitor as usual.
So something like this:
Quote
-merge levels into one
-use one part of the level for the airplane with 'camera' view
-use second part of the level for instruments with additional view
These all are just quick thoughts, I've never done anything like this myself.


Best regards!


Looking for free stuff?? Take a look here: http://badcom.at.ua
Re: multible windows A8 game [Re: NicolaB] #483128
05/05/21 10:03
05/05/21 10:03
Joined: Dec 2002
Posts: 1,826
Switzerland Zürich
JeyKey II Offline
Serious User
JeyKey II  Offline
Serious User

Joined: Dec 2002
Posts: 1,826
Switzerland Zürich
.


[Jeder ist sich selbst am Nächsten]
Re: multible windows A8 game [Re: NicolaB] #483145
05/05/21 22:46
05/05/21 22:46
Joined: Oct 2007
Posts: 5,201
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,201
İstanbul, Turkey
You can run 2 separate engine windows with different windows/vars/levels with c++ api, but you would have to sync any engine vars that needs to be synced yourself and both would have to wait the other to render the frame to start rendering it's own, therefore also one would always be behind the other by 1 frame.

Otherwise you can use networking libraries of functions to communicate with the other window.


3333333333

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1