Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[New G2O] Module example

I've decided to make this simple module solution, because i think, that many people who wants to create modules,
doesn't know, how to built them. Not everyone wants to "check" how everything works in any other module, so this
simple solution can be very useful for people which doesn't neccessary know everything about squirrel.

This module isn't side specifc, so, it can be loaded on client side or server side.
This module isn't platform specific, so, this module can be compiled under Linux.


*Installation after compilation:

For client module:

NOTE! The best way, is to put the client-side module into main server directory

- Put the module into this directory: Game/Multiplayer/Modules (if you don't have this folder, create it)
- Put the module into main server directory
- Add this line into config.xml

  1. <module src="sqmodule.dll" type="client" />

- Put the module into main server directory
- Add this line into config.xml

  1. <module src="sqmodule.dll" type="client" />

Info: You can put the module in any directory you like, in this example i'll demonstrate how to install module in main server directory.

For server module:

-Put the module into main folder
-Add this line into config.xml

  1. <module src="sqmodule.dll" type="server" />

Module and thread has been updated!

- I've slightly changed some things, to make this module truly platform independent (i've forgot to remove #include <windows.h>).
- Added simple CMakeLists.txt, and instructions how to compile the code under Linux.
- Corrected installation steps for client module.
Module has been slightly updated (small, yet important correction).

I've noticed, that helloWorld function returns 1, instead of 0 (this function example shouldn't return anything).
In near future, i'll publish the module as the repository, due to many oversights.
For now, i've noticed that there are some typos in CMakeLists.txt file, as well as missing -m32 flag, and etc.
It will be corrected as soon as possible.
I've updated the topic and added the link to the repository.
If anyone have some suggestions, write them here, or make a Merge Request in repository.

Possibly Related Threads…
Thread Author Replies Views Last Post
  [G2O] SpeedBlock Marbar 16 2,385 13.10.2020, 15:32
Last Post: Sative
  [New G2O][Client-Side] LocalStorage Patrix 0 685 08.05.2020, 16:38
Last Post: Patrix
  [New G2O][Client-Side] Clipboard Patrix 7 5,859 07.02.2019, 01:45
Last Post: Patrix
  [New G2O][Client-Side] Music Module Nubzior 3 3,257 24.05.2018, 08:07
Last Post: Nubzior
  G2O - Client Side Bots(0.0.4) KimiorV 16 9,727 16.01.2017, 10:47
Last Post: KimiorV
  [DEV] G2O Bot module Sative 64 33,913 25.11.2016, 20:13
Last Post: HammelGammel
  G2O Client side bots KimiorV 4 3,093 09.06.2016, 20:11
Last Post: KimiorV

Forum Jump:

Users browsing this thread: 1 Guest(s)