Outerra forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Outerra Tech Demo download. Help with graphics driver issues

Pages: [1] 2

Author Topic: Creating plugins  (Read 6646 times)

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Creating plugins
« 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?
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #1 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.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #2 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
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #3 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.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #4 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.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #5 on: March 01, 2017, 03:21:39 pm »

Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #6 on: March 01, 2017, 05:47:42 pm »



Code: [Select]
00:07.501 DEBUG: loading plugin: igc_plugin.dll
WIN)
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #7 on: March 02, 2017, 01:34:39 am »

Ok several missing files there. Use this branch:
https://github.com/Outerra/anteworld/tree/Branch_7503
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #8 on: March 02, 2017, 07:38:14 am »

Thank you! It works.


This is a misunderstanding?
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #9 on: March 02, 2017, 08:10:37 am »

There are still question. I did not understand how to add a new project this property.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #10 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.
« Last Edit: March 02, 2017, 12:05:12 pm by cameni »
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #11 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).
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #12 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.
Logged

SteelRat

  • Sr. Member
  • ****
  • Posts: 380
  • newbie
Re: Creating plugins
« Reply #13 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.
Logged

cameni

  • Brano Kemen
  • Outerra Administrator
  • Hero Member
  • *****
  • Posts: 6621
  • Pegs is clever, but tae hain’t a touch sentimental
    • outerra.com
Re: Creating plugins
« Reply #14 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.
Logged
Pages: [1] 2