Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Mateus

#1

MODIFIED SCRIPT SAMPLE
   
In order to facilitate and encourage contributions and development of servers written in Java for Vice City Multiplayer, we publish this modification of Newk5's sample Java script. This modification will be updated constantly, bringing new commands and features.



To get started, follow the step-by-step below

Install Microsoft Visual C++ 2010 Redistributable Package
x64 - https://www.microsoft.com/en-US/Download/confirmation.aspx?id=14632
x86 - https://www.microsoft.com/en-us/download/confirmation.aspx?id=5555

Install Microsoft Visual C++ 2010 SP1 Redistributable Package
x64 - https://www.microsoft.com/en-us/download/confirmation.aspx?id=13523
x86 - https://www.microsoft.com/en-us/download/confirmation.aspx?id=8328

Install Visual C++ Redistributable Packages for Visual Studio 2013
https://www.microsoft.com/en-us/download/details.aspx?id=40784

Install Visual C++ Redistributable for Visual Studio 2015
https://www.microsoft.com/pt-br/download/details.aspx?id=48145

Java SE Development Kit 8
https://www.oracle.com/java/technologies/javase-jdk8-downloads.html

Install Apache NetBeans
https://netbeans.apache.org/download/index.html

Follow the instructions in vcmp-sample-script
https://github.com/onemediainternational/vcmp-sample-script.git
Be aware that the teams and vehicles present in this modification were ported from the Warchief 2.0 script



one media team of game servers
Lauro de Freitas, Bahia, Brasil
2020.1
#2
one media team of game servers

INVESTIGATION


Our team is investigating and solving problems in the development of a Java server.

We have the following error:
1579446572245:  INFO - (VcmpPluginInit) VC:MP Java integration plugin loading...
1579446572276:  INFO - (JavaCore::LoadLibraryFunctions) Java VM library loaded.
1579446572276:  INFO - (JavaCore::LoadLibraryFunctions) Java VM library functions loaded.
1579446572276:  INFO - (JavaCore::SetupJVMArguments) Java VM settings initialized.
1579446572526:  INFO - (JavaCore::CreateJVM) Java VM created.
1579446572526:  INFO - (JavaCore::AttachThreadToJVM) Server thread attached to VM.
1579446572541: ERROR - (JavaExceptionHandler::Initialise) Exception in Java code
java.lang.NoClassDefFoundError: com/maxorator/vcmp/java/plugin/exceptions/DeadEntityException
Caused by: java.lang.ClassNotFoundException: com.maxorator.vcmp.java.plugin.exceptions.DeadEntityException
    java.net.URLClassLoader.findClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
    sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    java.lang.ClassLoader.loadClass(Unknown Source)
1579446572557: ERROR - (JavaExceptionHandler::Initialise) Exception classes not found (ThreadSafetyException, DeadEntityException, NullPointerException).
1579446572557: ERROR - (JavaCore::Initialise) Setting up exception handler failed.
1579446572557: ERROR - (JavaEventProxy::StartVM) JavaCore initialisation failed.

javaplugin.propeties -OK

jvmLibPath=C:\Program Files\Java\jre1.8.0_241\bin\server\jvm.dll
mainEventsClass=com.github.newk5.vcmp.samplescript.controllers.MainController
classPath=C:\Users\geren\Documents\NetBeansProjects\vcmp-java-script\dist
maxMemory=50m

We also ask for your help to solve this problem and give a definitive answer to the community that also reported similar or similar errors.
#3

REPORT

.
onemedia team of games servers
onemedia student team | UNIRB | Faculdade Regional da Bahia | Centro Universitário Regional do Brasil

Our onemedia team of game servers encountered obstacles when trying to develop a server in Java.

We had trouble loading some plugins, but this problem has now been fixed. We recommend other developers (Windows) to install:

Microsoft Visual C++ 2010 Redistributable Package
x64 - https://www.microsoft.com/en-US/Download/confirmation.aspx?id=14632
x86 - https://www.microsoft.com/en-us/download/confirmation.aspx?id=5555

Microsoft Visual C++ 2010 SP1 Redistributable Package
x64 - https://www.microsoft.com/en-us/download/confirmation.aspx?id=13523
x86 - https://www.microsoft.com/en-us/download/confirmation.aspx?id=8328

Visual C++ Redistributable Packages for Visual Studio 2013
https://www.microsoft.com/en-us/download/details.aspx?id=40784

Visual C++ Redistributable for Visual Studio 2015
https://www.microsoft.com/pt-br/download/details.aspx?id=48145

before trying to start the development of any server, mainly in Java - plugin "libjavapluginrel64"/"libjavapluginrel32".

We also recommend the VC: MP development team - Leave explicit dependency information on a forum topic or on the VC: MP 0.4 Wiki. It would be very interesting to facilitate the development of servers in Java, especially with a clearer explanation of how to do this.
#4
Support / Re: Linux plugin errors
Aug 21, 2019, 05:36 AM
Quote from: Milos on Aug 21, 2019, 03:46 AMNothing we don't have here in the forum. And these are very suggestive things
Apparently you don't have the file mysql04rel64.
The error with the port can be another application using it. You can only have one application per port.
If you are trying to open two servers at the same time, change the port in server.cfg

So far there is nothing similar in the forum.

Running VC: MP server for Windows, no error return. Running the VC: MP server for Linux is developed with error messages and issues. :'(
#5
Quote from: Milos on Mar 16, 2019, 10:36 PMfunction onPlayerJoin(player) {
NewTimer( "AnnTest", 5000, 1, player.ID );
}

function AnnTest(playerid) {
local player = FindPlayer(playerid);
if (!player) return;
Announce(player.Name + ", FPS " + player.FPS + ", Ping " + player.Ping + ", IP " + player.IP + ".", player, 0);
}



Solved.
#6
Support / Re: Linux plugin errors
Aug 20, 2019, 04:11 PM
1. Of course I've researched solutions to problems
2. There is still no solution to the problems

The first problem is the smallest of all for me. I have bigger problems like the second error message, and the third, regarding the port in use
All in all, thank you very much for your comment 8)
#7
Support / Re: Linux plugin errors
Aug 18, 2019, 05:56 PM
Awaiting Other Solutions
#8
Support / Linux plugin errors
Aug 16, 2019, 08:32 PM
The Linux distribution is Ubuntu 19.04
Vice City Multiplayer Server
 -------------------------------
 v0.4, (c) 2007-2014 VC:MP Team

Plugin error >> dlopen() 'plugins/hashing04rel64.so' failed: plugins/hashing04rel64.so: undefined symbol: _ZN8CryptoPP6Filter11TransferTo2ERNS_22BufferedTransformationERyRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
Failed to load plugin: hashing04rel64

Loaded plugin: sockets04rel64

Loaded plugin: announce04rel64

Loaded plugin: squirrel04rel64

Loaded plugin: xmlconf04rel64

Loaded plugin: ini04rel64

Loaded plugin: sqlite04rel64

.so: cannot open shared object file: No such file or directory
Failed to load plugin: mysql04rel64

[WEAPONS] No custom weapons to load.
[VEHICLEMODELS] No custom vehicle models to load.
Unknown bind__() error -1.
Unable to start server on host:  port: 5192. Port in use?
#9
The announce does not work, and no error message is displayed.

function onPlayerJoin(player)
{
Announce( "Test" + GetFullTime() + "." ,player, 0 );
NewTimer( "AnnTest", 5000, 1, player );
}

function AnnTest(player)
{
    Announce( "Test", player, 0 );
}

An error message is displayed and the server exits when Announce is:

function AnnTest(player)
{
    Announce( "" + player.Name + ", FPS " + player.FPS + ", Ping " + player.Ping + ", IP " + player.IP + ".", player, 0 );
}

But this does not display any error messages, and the server does not shut down:

function onPlayerJoin(player)
{
      Announce( "" + player.Name + ", FPS " + player.FPS + ", Ping " + player.Ping + ", IP " + player.IP + ".", player, 0 );
}