![]() |
How add user dll
I need to transfer the same parts of the code, which often use in dll-file in the game. For example the code localization(to send messages) and use of global variables in the hostmission and submission scripts. One file will be used in different scripts.
For example code of my dll-file: Code:
using System;Code:
//$reference "P11_folder\P11_localization.dll"And can I use this code: [/CODE] My mission script: Code:
//$reference "P11_folder\P11_localization.dll" |
For example i use this in my dll:
Code:
using System.Collections.Generic;Code:
//$reference parts/core/COD.dll //reference to my dll (Assembly) |
Quote:
Thank you very much! I will try your version later. |
Not work :(, I have this error whith your code:
Code:
[22:50:10] ================================================= |
Where do you store the file?
For multiplayer it must (should maybe there is another location too) be in "..\Steam\SteamApps\common\il-2 sturmovik cliffs of dover\parts\core" at the moment, until we can create Addins and specify the path of the User Dlls in the xml-file. |
I've been wondering about this, or how to modulise methods into individually run code when required.
What sort of restrictions is there at present for dll's? Actually how do you turn a cs script into a dll? Kodiak, I see also you run multible occurances of a public static void ToChatBar I thought this conflicted? How does it know which one to use? |
Quote:
Quote:
Quote:
|
Quote:
|
Addins for multiplayer are ignored at the moment or some trick is needed - ok if you get it to work tell me please.
|
ok, I try to build project(your message above) but get errors, so add references of CLOD, then project won't build and create dll....hmmm
I tried to follow several guides on web, all say process much the same, but dont work because I seem to need references from CLOD, which seem to make the build step fail...sigh. doing something wrong, not sure what. |
| All times are GMT. The time now is 08:58 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.