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:

3 years ago

August 14, 2020, 07:31:25 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 - Philpax

Pages: 1 2 [3] 4 5 ... 41
Scripting support / Re: Using Image Lib
« on: April 28, 2014, 10:38:40 am »
As we're currently working out details for streaming images and more to players, players will have to manually place any images you want to use in their own JC2-MP directory. Information on that can be found here:

As for your example, this is what it should look like:
Code: Lua
  1. -- Use AssetLocation.Disk instead of 0 for readability
  2. -- Use logo.png as it's an asset that already exists on everyone's clients
  3. local img = Image.Create(AssetLocation.Disk, "logo.png")
  4. img:SetPosition(Vector2(0,0))
  5. img:SetSize(Vector2(200,200))
  6. function Render()
  7.     -- Draw the image every frame
  8.     img:Draw()
  9. end
  10. Events:Subscribe("Render", Render)

Suggestions / Re: Add Events to IsValid()
« on: April 28, 2014, 10:28:28 am »
This already works, and has worked prior to release. Did you test your example?

A more general solution for network values is planned as mentioned by Castillo. The Player values are a targeted improvement to address the lack of player storage; now that the basics are in place, we can generalize it. We're aiming to get this in soon.

JC2-MP / Re: Why is there no support for outside mods like GTASAMP?
« on: April 28, 2014, 10:17:57 am »
It was neat to see a tie fighter in game.

Pease mate; that's clearly an X-wing. :P

Please mate, it's spelt please :P

Anyhow, on the topic at hand: Avalanche hasn't provided us any direct technical assistance. We've been investigating the possibility of importing custom models, and have made a few potential advancements, but we have nothing to show right now. We'll let the community know if we make any breakthroughs  :)

Will see if we can implement this and fix SetHealth's damage reason in the process. Should be fairly easy. :)

Work in progress / Re: Vehicle Airdrops
« on: April 07, 2014, 02:11:16 pm »
Nice. How are you slowing down the rate of descent for the vehicles?

Latest / Re: 0.1.4 Announcement
« on: April 01, 2014, 12:40:31 pm »
Thank you for the reply, Philpax. It is reassuring to know a Dev reads our posts and hears us.

Real Life is very understandable and should always take priority.

It took me about an hour to recreate amphibious vehicles after your confirmation. If it is alright with you I plan to release this script after a few more modifications to it.

Sure, go right ahead.

Latest / Re: 0.1.4 Announcement
« on: March 30, 2014, 05:27:13 am »
We hear all of you, and understand your concerns. In fact, I raised this issue with the rest of the team several times (as Trix would attest to), and rest assured, we know that you'd all like more examples. I agree that our 0.1.2/4 launch could've really done with more details on how to use new features; I was responsible for organizing the launch, but due to real-life circumstances I was unavailable at the time.

For future launches, we'll try and get everything together - we've formulated a release process that ensures that documentation and examples will be ready prior to release. A bare-bones version of Trix's missiles have been released - the version demonstrated in the video wasn't ready for release - and I hope people will put it to use. Amphibious cars is indeed implemented by placing a clientside static object under the vehicle; that was my script, but as a result of the aforementioned real-life circumstances, I was unable to release it.

So again, sorry for not getting everything together; real life has served to intervene heavily in our affairs, and it's becoming increasingly difficult to fit JC2-MP into our busy schedules. Hopefully, we'll be able to get the next release together in a package everyone can enjoy. :)

Scripting / Re: ImagePanel - Failed to load image
« on: March 23, 2014, 05:18:52 am »
Support for loading images from the game using ImagePanel currently doesn't exist; we'll see if we can rectify this later. For now, you can use Image, which supports loading from the game; however, you'll need to handle the positioning and rendering yourself. If you need an example of how to make it work well with GWEN, feel free to ask.

Bug reports / Re: Crazy keyboard by pressing ESC
« on: March 09, 2014, 11:48:11 pm »
We suspect this is related to Input:SetValue. Still looking into it.

JC2-MP / Re: Is it possible to make scripts more gamepad friendly?
« on: March 09, 2014, 06:03:24 am »
It requires a dedicated effort by the scripter; we're going to try and make it as easy as possible to implement gamepad support (a few minor changes to input handling), but the burden will remain on scripters.

Latest / Re: 0.1.4 Announcement
« on: March 09, 2014, 06:02:00 am »
I sure hope they're released, else it could take the rest of us quite some time to figure out how to use them.

How does the vehicle color changing work? I don't see anything in the changelog wiki talking about that feature. I ask because I have some places where it would be useful.

Will the wiki be updated on March12th with the new features?

Vehicle:SetColors now updates the vehicle's colours immediately. I've added an example here:

Latest / Re: 0.1.4 Announcement
« on: March 08, 2014, 03:34:24 pm »
don't wanna be pessimistic, but this update looks rather useless to me, since there is more important issues like overall syncing rather than adding client side functions.
This update is nice to have, but not really useful.

We agree; this update is for scripters to implement their own features, such as heat-seeking missiles, SAM sites, and more.

We plan on improving sync considerably and adding other important features such as Unicode support in 0.1.5. More information on that soon.

Bug reports / Re: Crash after SortedList RowSelected event
« on: March 08, 2014, 03:28:57 pm »
This is a result of :Remove() being used on the row element, when list:RemoveItem should be used instead. Will have to think about what we can do to fix this situation.

Latest / Re: 0.1.4 Announcement
« on: March 08, 2014, 02:09:43 pm »

Pages: 1 2 [3] 4 5 ... 41