• 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.

FSX Item varification through XML code

Messages
10,163
Country
us-arizona
Hey all,

Is it possible to have a gauge in an addon package to check for something in FS to verify and then operate?

Lets say, I want to have a 'key' file that 'enables' gauges to work, or the plane to show up, a security. Can I have an XML gauge seek out a file, such as a bitmap or a file?

Also, can the file just be a named file object, something without a file 'type' in it, like a JPG that is renamed to something like 264w without a file extension? Or would this need to all be C++ programming?
 
Bill, even were it possible to do so, anything scripted in XML is subject to being easily bypassed and/or circumvented.
 
I know.... arrgh... I want to stay in XML as much as possible.

DLL's and such are the way to go, I guess.


Can a DLL locate files that have no file extension and measure their Kb size?
 
You can include the module_init()in the C gauge file. The following snippet should get the length of the file C:\\....



Code:
void FSAPI module_init(void)
{
int File;
char FileName[] = "C:\\....";
int FileLength;

File = open(FileName, O_RDONLY);

if (File == -1)
	{
	// File not found

	}
else
        {
        // File found
        FileLength = filelength(File);

        }

};
 
As Bill stated, it's not possible to even think of any kind of copy protection using XML scripts :(

Tom

Well, not without resorting to a C gauge to perform the validation.

I have used such tricks as embedding GUID codes in a .mdl and using a C gauge to locate and validate them, but that only slows hackers down a bit. It won't stop the determined, darn it! :banghead:
 
Is it possible then to link the ID C++ GAU files to the XML files to get them to function?



Bill
 
Is it possible then to link the ID C++ GAU files to the XML files to get them to function?
Bill, what my scheme did was attempt to limit the operation of the C++ gauge system to the specific 3d model, and vice-versa.

The C++ gauge would look for three specific GUID codes embedded in the model, and if found run through some interesting math using them to validate the authenticity of the model.

If valid, then a specific value for one of the three GUID codes would be set by the C++ gauge. Meanwhile, in the model itself embedded logic would decode the now correctly set value from that operation and enable some <Visibility> conditions to be satisfied, hence allowing the entire model to be displayed, animated and operational.

In theory, failure at any level of the scheme (including the Flight1 license check) would cause the aircraft to load with totally failed C++ gauges, and parts of the exterior and interior models to be missing.

My estimate is that it took about six weeks after release before some clever b*tard managed to defeat the scheme... :(
 
My estimate is that it took about six weeks after release before some clever b*tard managed to defeat the scheme... :(

Well, that seems to be a good score! Had you used a script-based scheme and it wouldn't have lasted virgin more than a couple of days...:D

Tom
 
Well, that seems to be a good score! Had you used a script-based scheme and it wouldn't have lasted virgin more than a couple of days...:D

Tom
True dat! I know it's only "speculative" but I did find it interesting that sales for the first six weeks were quite steady at 30/day or thereabouts, but after it got "cracked" sales dropped to < 4/day on average. :(
 
Back
Top