• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSDS Variable ID$

Messages
7
Country
us-missouri
:confused: I'm an advanced scenery designer. But I must say I'm learning new tips and tricks all the time.
I have come across a problem that I need some help on.
FSDS V2. somthing. I have the latest version. Abacus does not support their variable id $. Does any one have a list of the $ and there functions. I can figure out several because there self explanitory. but several that I belive I need to use are not available. I really need this code. and help from someone that is more experience than I in hex editing.
I'm trying to place people during certain days of the week for a large project im working on.
I can use the time of day $ or the BGL_Zulu_Day or hrs or min. but this is the problem. if you insert a value for one in the using the and Operation or notand operation value 2 is of no use. that would make sence.
so this give you a condition if set to 1 to be ever other day od days numbers untill year 2005. then you get even days. "makes perfect sense Reverse is tru for a not and operation "even then odd." but what I want is to have a person display or objects on given days of the week. Oh. I might add that if the value of 1 is increased to the 2 3 or etc then the object displays for 2,3,or etc. then goes off for 2,3,etc. Interesting. hu.
I can use ifnrange ifnotinrange operation and ofcourse the old 16384 comes up. I said to myself SELF this cant be right. well its not. you have to use for example 291 in value one. and 291 in value 2 to get the macro to show on October 17th 2004 this is ofcourse the 291th day. This method can also be used to display during a series of days val 1 =180 val2 =291 this would ofcourse make the object displayable during the 180 thru the 291th day.

The other operations dont have any effect and don't seem to work. I think they probably do I just havn't cracked the numbers yet.
By the way I found the 291 in the Pete Dawsons fslook.exe program.
While there i found the answer to my problem there is an variable ID assigned in flightsim of DAY_OF_Week. unfortunatly i have not been able to crack the hex code for the variable id to place in the veriable it cfg and txt files.
Please can any one help me compile a list of these operatoin and there functions. aparenly. Abacus wont support cause the don't know. and FS wont release these $ hex veriabls and ID and there integer values.
HELP HELP HELP> im so close to creating a peeps package that will alow the pilots to pick up passengers it's not even funny. but. I cant get past this mess. I might as well be trying to go to the moon. So close but yet so far LOL>
:banghead: :banghead: :banghead:

Thanks Donald R Elliott
Don@muchbros.com
Also you can see some pictures of the project at www.munchbros.com then go to message forums/ scenery design / projects / akoilrigs.
 
Hi Donald!
I have never bothered with day of week variable although I must admit, it might be useful sometimes.
As regards to the list of variables, they are written in one of the files in the FSDS main folder. Just take a look and You will find whole list and even a list of common variables, that scenery and/or aircraft designer would use together with usual condition. Unfortunatelly I can't tell You the exact name as on my job I don't have FSDS, but I can 100% tell You, that there are those files. I have also modified the file with usual conditions and it works.

Best regards,
 
This is interesting, as far as I know there is no variable in FS that tells us the day of the week right away, we only have variables for day of the year. Maybe with some calculations we can get the day of the week, but I don't think it is there ready to be used.

Now that I think about it, maybe with some interpolation it is very well possible to get this value, the only problem would be that day 1 does not always start at the same day of the week.
 
The goal is to have a Peep. appear and disapear like he is being picked up.
There are several ways to do this but the day of week or somthing that only has the peep apear at certain times would be the best. Then you could use as a macro and place all over. Then the author could just state the days or conditions the peep is available for pickup and the goal would be accomplished. I can do this by hr. already but I don't think this is a good ideal.
There has to be a way to do this. Im just :banghead: and not thinking clearly anymore. All the help I could get would be appreciated.
does anyone no what the uservariables do and how do we flag it to a already known Flightsim variable ID. that would limit us to a And or Notand operation but that would be better than nothing.
Mayby we could us a gauge to do this. and have the macro look for an and operation being a result of the gauge. the guage would look for the day of week and report the user variable and produce a simple 1,0 to the user $ variable. the macro would be scaning the variable condition and when meet true 1,0 or and notand it appears. all we got to do is find an open hex in bit16 and were in. NOT> LOL.
don
 
Hi Donald,

I think it is best not to use too many user variables for this, we have only 5 and it might easily lead to conflicts with other sceneries. I think using a local variable would be a better solution here.

When I get home this evening I will have a look at the interpolation, it is also used in animation to determine the frame number. I think we can use the same to split the days of the week from the days of the year variable.

I will report back on this, but the more I think about it, the more I think it should be possible to make a piece of code that generates a local variable for the day of the week.
 
Just a small update. I have started coding an example and the good news is that it works. The code is not complete (so it does not yet work the entire year), but I am able to create a new local variable for the day of the week. I hope to finish the code in the coming days and then I will post it here.
 
Wow

Oh that is great news.
I'm so excited I think I just wet myself. LOL>
I really appriciate your help with this. I can't tell you how gratefull I am.
Thanks
Don.
 
OK, here is my example file.

It is just a simple block that changes color with the day of the week. Local variable 4 contains the value for the day of the week, it can take the following values:

Code:
0 monday
1 tuesday
2 wednesdag
3 thursday
4 friday
5 saturday
6 sunday

See the source code to check how I used it. If the example is not clear enough (for example for people not familiar with SCASM code), let me know, maybe I can explain it a bit better.
 

Attachments

Hallo !
I have implementet the "DayOfWeek" codesnippet on a couple of dynamic objects and it works fine and it's easy to modifi if you want to. My old code for this was a lot of "IfVarRange" on every day I want the objects to show :-).
Thanx, Peter
 
Hi Arno,
although this thread is rather dusty, I found it because I'm looking for just this day-of-week-thing to use with mdl-tweaker. The "DAY_OF_WEEK"-var is usable in accordance to the parameter-doc in the panels-SDK. So why can't one just try it with scenery?
I'd tried it by myself, but I didn't find a possibility to decompile tweaked mdls in order to see how you tweak them with mdl-tweaker (is there a possibility to decompile them?).
Do you know if the var could be used in scenery?
 
Hi Thorsten,

As far as I know the scenery can not read that other variable. Sceneyr can not access variables of panels or aircraft directly. That is why I added a day of the week varaible to my ActiGate module as well :).

And no, at the moment there is no decompiler for MDL objects. This is one of the features I have in mind for the new MDL Tweaker II. But if you want to see the code used, I can show you a segment of course.
 
Hmm, I don't think I'm able to understand it right now. :o
Maybe I'll try it with a user variable and control this by a gauge that reads the day_of_week-var. This should work, I think.
 
Hi Thorsten,

Yes, that should work fine. That is also how I do it in my module. I am only worried that we might get a lot of conflicts between values written into user variables if a lot of people start to use them like that :D.
 
Yes, :D that's the same problem as with my reverse-sound-fx. I used sound-names reserved and hard-coded in FS. But you're never sure if somone other uses it with his effects/scenery. :o
 
Back
Top