Outerra forum

User mods, screenshots & videos => Plugins / Add-ons => Topic started by: SteelRat on February 24, 2017, 10:02:14 am

Title: Creating plugins
Post by: SteelRat on February 24, 2017, 10:02:14 am
Visual Studio 2015

eng.log
Code: [Select]
00:07.046 DEBUG: loading plugin: igc_plugin.dll
00:07.722 ERROR: failed to load plugins/igc_plugin.dll

What could be the reason?
Title: Re: Creating plugins
Post by: cameni on February 25, 2017, 12:02:14 pm
Failing to load dependencies (other dlls it needs) or an exception during the loading of the dll.
Title: Re: Creating plugins
Post by: SteelRat on February 25, 2017, 01:50:21 pm
Failing to load dependencies (other dlls it needs) or an exception during the loading of the dll.

This is your original example, without changes and amendments. I'm trying to move it to version 2015
Title: Re: Creating plugins
Post by: cameni on February 27, 2017, 03:52:01 am
Likely a wrong version of the API then. Going to put it on Github with version tags.
Title: Re: Creating plugins
Post by: SteelRat on February 27, 2017, 07:46:45 am
Likely a wrong version of the API then. Going to put it on Github with version tags.

Excellent! Expect.
Title: Re: Creating plugins
Post by: cameni on March 01, 2017, 03:21:39 pm
https://github.com/Outerra/anteworld/releases/tag/7503
Title: Re: Creating plugins
Post by: SteelRat on March 01, 2017, 05:47:42 pm
https://youtu.be/c999Z9xgQjk

Code: [Select]
00:07.501 DEBUG: loading plugin: igc_plugin.dll
WIN)
Title: Re: Creating plugins
Post by: cameni on March 02, 2017, 01:34:39 am
Ok several missing files there. Use this branch:
https://github.com/Outerra/anteworld/tree/Branch_7503
Title: Re: Creating plugins
Post by: SteelRat on March 02, 2017, 07:38:14 am
Thank you! It works.


This is a misunderstanding?
Title: Re: Creating plugins
Post by: SteelRat on March 02, 2017, 08:10:37 am
There are still question. I did not understand how to add a new project this property.
Title: Re: Creating plugins
Post by: cameni on March 02, 2017, 11:45:44 am
Why would you want to add it? It's not needed for the plugin.

This is a misunderstanding?

You mean if it's a mistake? The generator sometimes emits code for multiple interfaces or types and doesn't merge them, but it's not anything critical.
Title: Re: Creating plugins
Post by: SteelRat on March 02, 2017, 12:20:19 pm
Quote
Why would you want to add it? It's not needed for the plugin.

I thought that it is a prerequisite.

Quote
You mean if it's a mistake? The generator sometimes emits code for multiple interfaces or types and doesn't merge them, but it's not anything critical.
Ок.
I have caused suspicion that there are two identical rows).
Title: Re: Creating plugins
Post by: cameni on March 02, 2017, 12:51:47 pm
Intergen is needed only if you want to expose interfaces from your plugin, that can be used by scripts to get some external functionality or to delegate vehicle handling to it. There will be an example of it in next update.
Title: Re: Creating plugins
Post by: SteelRat on April 08, 2017, 09:46:59 am
Hi cameni!

It would be great to look in the source projectiles.dll, in order to gain experience. If may.
Title: Re: Creating plugins
Post by: cameni on April 10, 2017, 01:43:34 am
We plan to, but we first need to do a cleanup and rework the dll to use interfaces of the public API only.
Title: Re: Creating plugins
Post by: SteelRat on April 10, 2017, 08:36:17 am
We plan to, but we first need to do a cleanup and rework the dll to use interfaces of the public API only.

ok