Help with some advanced i/o (nevermind)
Quote from Spam Nugget on March 6, 2012, 10:47 pmGday all, im looking for some assistance with some rather complicated i/o im trying to get working. It involves the challenege mode im trying to get working for my mod and I cant get it working properly despite spending hours on the problem.
Problem explanation:
[spoiler]I have several maps all acessed off a central lobby area from which challenge mode is also selected. On completing the level, the score obtained in challenge mode is then changed into binary form and stored in a set of env_globals. The processing of all the challenge mode logic is done by entities contained in the departure elevator instance, though the env_globals used to transmit the score are contained in the bsp of the level itself, referenced from within the instane using the @ prefix as well as wildcards, so that while i have a different set of env_globals for each level I need use only one standard elevator instance in all maps.
The lobby map acesses these env_globals, converts the binary to integer form and displays the score upon a screen. This all works. The problem starts when I try to run challenge mode for more than one map. The first map completed in challenge mode will have its score put on the env_globals and displayed correctly upon the screen, but any subsequent maps will not have their score displayed upon the screen. The score from the first map completed will still be there.
It does not matter which map I play first, the result is still the same; its score will be displayed but no subsequent scores will be displayed. Frankly I have no clue whatsoever why this is happening, but its driving me mad trying to figure it out.
I do believe that the problem is not with the logic for showing the score on screen, as setting the env_globals in the lobby to on and checking the flag 'set intitial state' gives the correct values on the screen. So I think that for some reason the score is not being put on the env_globals properly by the logic in my elevator instance, but I really cant figure out why.[/spoiler]
So I guess what im asking is wether there is anyone out there with good knowledge of the i/o system, including instances, wildcards and env_globals; and who also has some time on there hands to have a look at this for me.
If you are able to help, please let me know and ill send you the necessary vmfs. (id rather not put them up here for just anyone to take. Ive spent far too long getting this working even to this point)
Much appreciated,
Spam NuggetEDIT:
Well turns out Ive fixed the problem.
Gday all, im looking for some assistance with some rather complicated i/o im trying to get working. It involves the challenege mode im trying to get working for my mod and I cant get it working properly despite spending hours on the problem.
Problem explanation:
The lobby map acesses these env_globals, converts the binary to integer form and displays the score upon a screen. This all works. The problem starts when I try to run challenge mode for more than one map. The first map completed in challenge mode will have its score put on the env_globals and displayed correctly upon the screen, but any subsequent maps will not have their score displayed upon the screen. The score from the first map completed will still be there.
It does not matter which map I play first, the result is still the same; its score will be displayed but no subsequent scores will be displayed. Frankly I have no clue whatsoever why this is happening, but its driving me mad trying to figure it out.
I do believe that the problem is not with the logic for showing the score on screen, as setting the env_globals in the lobby to on and checking the flag 'set intitial state' gives the correct values on the screen. So I think that for some reason the score is not being put on the env_globals properly by the logic in my elevator instance, but I really cant figure out why.
So I guess what im asking is wether there is anyone out there with good knowledge of the i/o system, including instances, wildcards and env_globals; and who also has some time on there hands to have a look at this for me.
If you are able to help, please let me know and ill send you the necessary vmfs. (id rather not put them up here for just anyone to take. Ive spent far too long getting this working even to this point)
Much appreciated,
Spam Nugget
EDIT:
Well turns out Ive fixed the problem.

I think in terms of boolean variables. Generally, it makes things easier.
Quote from ChickenMobile on March 7, 2012, 5:02 amNevermind.
EDIT: Nevermind
Nevermind.
EDIT: Nevermind
Quote from Robdon on March 8, 2012, 2:17 amHi,
I've done quite a bit of playing around with env_globals and using them to pass a 'score' from multiple maps into a 'lobby' area.
If you want, send me a PM with your vmfs and I can take a look.
Rob.
Hi,
I've done quite a bit of playing around with env_globals and using them to pass a 'score' from multiple maps into a 'lobby' area.
If you want, send me a PM with your vmfs and I can take a look.
Rob.

