Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
September 20, 2019, 10:19:02 pm

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.


Messages - dreadmullet

Pages: [1] 2 3 ... 45
1
Scripting support / Re: Race Editor
« on: January 31, 2016, 08:03:38 pm »
As the map editor readme says, "You can import maps from the old Racing version using the client console command loadoldcourse".

2
Scripting support / Re: Race Editor
« on: January 30, 2016, 10:53:24 pm »
You're using on old version of the race script. A very old version. The latest is here: https://github.com/dreadmullet/JC2-MP-Racing

.course files are used by the old race script.

.map files are used by the new race script, 1.0+.

3
We don't provide any support for FreeBSD, sorry. None of us use it or have any interest in it. The FreeBSD server guide was written by someone in the community. Unless you can provide some insight for us that might help fix it, the guide may have to be taken down.

4
Bug reports / Re: 0.2 Render:GetTextSize() ignoring scale
« on: November 11, 2015, 08:55:43 am »
Fixed.

5
Scripting support / Re: Exact position of GUI element in BaseWindow
« on: October 22, 2015, 11:52:22 pm »
For any control, you should be able to use http://wiki.jc-mp.com/Lua/Client/BaseWindow/Functions/RelativeToAbsolute

Code: [Select]
local posOnScreen = myControl:RelativeToAbsolute(Vector2.Zero)

6
Bug reports / Re: 0.2 model remains when you teleport a vehicle
« on: October 13, 2015, 01:13:42 am »
Setting a vehicle's position can result in Bad Things happening if the vehicle is going to or coming from far away. In general, only move vehicles that are near the player.

The last time I used it, there was also an issue when car doors or other things were open and swinging around. Only the main part of the vehicle gets moved, not the doors, and it goes crazy. Moving vehicles should be used with caution.

7
Bug reports / Re: Vehicular Anti-Gravity Bug
« on: August 11, 2015, 07:34:08 pm »
I've seen this before, but I don't know what's going on. Sometimes the physics engine just breaks for certain objects. My best guess is that it has to do with NaNs. You should try checking for NaNs in everything you input into the API (like Vehicle:SetLinearVelocity) and see if you can narrow it down.

8
Bug reports / Re: Chat/Buy menu/All Commands don't work.
« on: July 30, 2015, 01:01:10 am »
I think this is the eleventh topic about this issue, so I made a troubleshooting page: http://wiki.jc-mp.com/Troubleshooting/Can%27t_interact_with_server

In short, your client can't upload all or most packets to the server for some reason, and I know of no common solution.

9
Scripting support / Re: ScrollControl
« on: May 09, 2015, 02:09:46 am »
Not how you want.  But here are some things I just thought of that might work:

1) Make the TabControl horizontal.  GWEN is supposed to have two arrow things to sort of scroll between tabs.

2) Wrap it all in a ScrollControl, but that probably looks bad.

10
Scripting / Re: garage spawn On racing script
« on: April 17, 2015, 02:35:22 am »

11
This is amazing. Well done.

12
JC2-MP / Re: Message to the Devs
« on: February 02, 2015, 02:38:28 am »
¯\_(ツ)_/¯

13
Scripting / Re: Class inheritance
« on: December 16, 2014, 05:42:31 pm »

14
Scripting support / Re: Function arguments in events
« on: December 01, 2014, 07:19:01 pm »
Your subscribed function already receives the relevant slider as the only argument. All GWEN events work that way.

15
Scripting support / Re: How does the class inheritance work?
« on: August 30, 2014, 07:09:56 pm »
There is no good way to do inheritence with the current JC2-MP setup. There are a number of ways, but they're all very flawed.

The way I have found a preference for is this:
* Define base and derived in their own files, putting class("MyBase") or class("MyDerived") at the top of each file.
* In MyDerived's constructor, put MyBase.__init(self)
* This would require that, in MyDerived, you must call base functions like MyBase.MyFunction(self, otherargs), but you can get around this by "exposing" base functions by setting them all to self in the base.

See here for examples in the racing script:
* RaceBase
* Race

The Luabind documentation mentions that you can make a derived class by doing something like
Code: Lua
  1. class("MyBase")
  2. class("MyDerived")(MyBase)
  3.  

However, you can't just do this in an _init.lua file and put the functions in their own files. You must first do class("MyBase"), define MyBase's functions, do class("MyDerived")(MyBase), then define MyDerived's functions. If you have them in two files, then the MyBase has to be ran first, but the issue is that scripts are loaded in an undefined order. There's just no good way to do it.

Actually, I just realized that you may be able to get around this by putting all base classes in a subdirectory, since scripts in subdirectories are loaded first (I think). That's still annoying, though.

Pages: [1] 2 3 ... 45