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

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.

Repository

*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

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



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

PHP
  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

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


Reply
#2
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.
Reply
#3
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).
Reply
#4
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.
Reply
#5
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [New G2O][Client-Side] GUI Patrix 1 3,343 02.01.2021, 05:22
Last Post: Patrix
  [G2O] SpeedBlock Marbar 16 11,055 13.10.2020, 15:32
Last Post: Sative
  [New G2O][Client-Side] LocalStorage Patrix 0 2,424 08.05.2020, 16:38
Last Post: Patrix
  [New G2O][Client-Side] Music Module Nubzior 3 5,912 24.05.2018, 08:07
Last Post: Nubzior
  G2O - Client Side Bots(0.0.4) KimiorV 16 16,998 16.01.2017, 10:47
Last Post: KimiorV
  [DEV] G2O Bot module Sative 64 59,209 25.11.2016, 20:13
Last Post: HammelGammel
  G2O Client side bots KimiorV 4 5,902 09.06.2016, 20:11
Last Post: KimiorV

Forum Jump:


Users browsing this thread: