Plugin - OS- Questions

Started by Dualnames, Thu 23/04/2009 23:54:14

Previous topic - Next topic

Dualnames

Wondering if I have this code:

if (eOS==eOSWindows) {
function1(int variable);
}

And I'm emulating windows via linux, will the code be run, or will AGS be tricked?

And another thing, I'm using CharacterControl Plugin, but the game gets an error without starting when attempting to run it using D3D, that's normal with all the plugins?
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Gilbert

It should be if (System.OperatingSystem == eOSWindows) {
...
Where did you get that eOS thingie from? :P

I think it will run. I bet the OS thingie is probably hard coded to the engine itself. (Just my guess, needs clarification.) Since only Windows version is available for the the current engine it's pretty useless atm anyway.

About the plugin problem, your information is too vague. Please tell us what error it is.

Dualnames

Quote from: Gilbet V7000a on Fri 24/04/2009 01:54:31
It should be if (System.OperatingSystem == eOSWindows) {
...
Where did you get that eOS thingie from? :P

I think it will run. I bet the OS thingie is probably hard coded to the engine itself. (Just my guess, needs clarification.) Since only Windows version is available for the the current engine it's pretty useless atm anyway.

About the plugin problem, your information is too vague. Please tell us what error it is.

Nevemind the code (eOS just showing the idea)
An error message saying "Plugin not compatible with D3d mode"
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Gilbert

I think that plugin is a bit outdated. It probebly used some features that are obsoleted in newer version of AGS or in the D3D mode. Any reasons you cannot use the module version instead?

monkey0506

I'm not 100% certain, but I think that the OS checking should actually function properly. It would normally throw a compile-time error due to the plugin functions not existing but obviously we can't even compile games on other OSes yet, so I think it should always be valid at compile-time. The only instance it should throw a run-time error is if it actually tries to execute the function.

So that should actually be safe.

However, in the event that the AGS Editor is ever ported to other OSes, it would then be necessary to use #ifdef macros for this type of functionality.

And I don't know about the plugin compatibility with D3D...

Pumaman

Quote from: Dualnames on Thu 23/04/2009 23:54:14
Wondering if I have this code:

if (eOS==eOSWindows) {
function1(int variable);
}

And I'm emulating windows via linux, will the code be run, or will AGS be tricked?

If you are running the standard AGS Windows runtime, via an emulator such as WINE, then it will be detected as eOSWindows.

QuoteAnd another thing, I'm using CharacterControl Plugin, but the game gets an error without starting when attempting to run it using D3D, that's normal with all the plugins?

That means the plugin is trying to do something like direct access to the screen, which is not possible under D3D. It means that it needs to be updated to run successfully with the D3D driver.

SMF spam blocked by CleanTalk