![]() |
wow this is great, will give it a try, thanks a lot!:grin:
|
Code:
|
no matter what i tried i couldnt manage to create a reference to gamedev object, all castings i tried returned null in Init method, probably would get serialization error instead in OnBattleStarted method, since GameDev is abstract and its constructor which the game uses needs an IGameInterface, there must be a way to keep it as a reference with the right type. i guess "as" operator tries to serialize gameplay for conversion. idk if gameplay can be casted like this directly or indirectly. which makes me think devs may have done this to restrict these parts from users. it would be better to ask for a proper way for this, maybe they can include new methods/properties for us in the future to interact more extensively.
|
Did you check if GamePlay is null before the cast?
Basicly you can do the cast using Code:
maddox.game.GameDef game = (maddox.game.GameDef)GamePlay; or Code:
maddox.game.GameDef game = GamePlay as maddox.game.GameDef; I tried both and both did work. Of course I still get the serialization exception. |
Hi, Stillborn!
Is it possible to reduce number of destroyer ships by about 30-50%? We have complains that it is not possible to have dogfights above them due to their uber AAA. BTW some stats from Repka 2 http://r2.repka.su/ Thanks for the mission again! |
Quote:
|
Quote:
|
Thanks Ataros :) overlooked it after searching various forums half the day to my eyes bleeds ;-)
Must get me some stronger glases :cool: |
All times are GMT. The time now is 06:15 AM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.