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

3 years ago

Advertisement
November 25, 2020, 03:07:23 am

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 - Cole89

Pages: [1] 2
1
Bug reports / Game Crash on second PC , only in a circumstance
« on: February 24, 2016, 01:44:55 pm »
I've got a problem on a second PC I have at home,
The game crashes only when I try to drive a LAND VEHICLE , no problem on boats or planes .
i attach the bug report, I already tried to enable legacy renderer or disable steam overlay ..
the game runs perfectly I've just have this problem .. not when entering in a vehicle but only when I try to move with it ..

Thank you .

Code: [Select]
<?xml version="1.0" encoding="UTF-8" ?>
<CrashRpt version="1301">
    <CrashGUID>ac250bec-bca2-414e-b157-29804dffa794</CrashGUID>
    <AppName>JC2-MP</AppName>
    <AppVersion>0.2.2 (Build 1344)!1344</AppVersion>
    <ImageName>D:\Steam\SteamApps\common\Just Cause 2\JustCause2.exe</ImageName>
    <OperatingSystem>Windows 7 Ultimate Build 7601</OperatingSystem>
    <OSIs64Bit>1</OSIs64Bit>
    <GeoLocation>it-it</GeoLocation>
    <SystemTimeUTC>2016-02-19T21:08:52Z</SystemTimeUTC>
    <ExceptionAddress>0x771af962</ExceptionAddress>
    <ExceptionModule>C:\Windows\SysWOW64\ntdll.dll</ExceptionModule>
    <ExceptionModuleBase>0x77180000</ExceptionModuleBase>
    <ExceptionModuleVersion>6.1.7601.19135</ExceptionModuleVersion>
    <ExceptionType>0</ExceptionType>
    <ExceptionCode>0</ExceptionCode>
    <GUIResourceCount>26</GUIResourceCount>
    <OpenHandleCount>713</OpenHandleCount>
    <MemoryUsageKbytes>758008</MemoryUsageKbytes>
    <CustomProps />
    <FileList>
        <FileItem name="crashdump.dmp" description="Crash Minidump" />
        <FileItem name="crashrpt.xml" description="Crash Description XML" />
    </FileList>
</CrashRpt>

PS: does it need also the .dmp file ? cause it's too large to attach here.

2
Scripting / Re: How to Respawn Players where they died ?
« on: February 19, 2016, 01:28:07 pm »
If you're modifying the freeroam script, you don't need new subscriptions or functions.

This modified script will use the original freeroam spawns when the player first connects. After player death, the player will respawn 2000 meters above where they died. That's not really ideal if you die in the air, but it works. The changes are lines 269-272 and 319.

This lua works like a charm !! thank you my friend !
Thanks to both of you !
I also moved the giveweapon command in order to give new weapons only on first spawn matched with the raondom spawn . then when player dies keeps same weapons and spawns where he died .
i reduced the height from 2000 to 450 , I realized that maybe 2 km was a bit too high XD
yeah we made it !! ;)

I'll make a donation to the project as soon as I can !

3
Scripting support / Re: Any way to get on Bike as passenger?
« on: February 19, 2016, 01:25:48 am »
You could use ClientActors like this:



But combining the two scripts is not trivial.

oh nice ! i'll have a look at it !
but probably too difficult to manage these things for me XD
thank you !

4
Scripting / Re: How to Respawn Players where they died ?
« on: February 19, 2016, 01:24:16 am »
ohhhh we are getting there . you are my hero !
but it still gives me an error, wich doesn't make the first random spawn as freeroam default but at the airport as server default (it's not a big problem . the most important part is working perfectly!)
the server gives it on this line, I can't understand why, since the code is identical to defalut..  :

Code: [Select]
if #self.player_spawns > 0 then

5
Scripting / Re: How to Respawn Players where they died ?
« on: February 18, 2016, 09:25:46 pm »
Just a note, you don't need to reset player values to nothing on join. Player values are always nilled when a player leaves.

Right ! Thank you!

and Thanks LordNoob for the help ! , but obviously I can't get it working :( the server gives me an error on the line where starts the copied freeroam playerspawn function, or on the line where i set the player death value. probably I didn't insert it correctly.
btw I added it still in the freeroam script , and after the PlayerSpawn function. is that correct ? or shall I remove it?
and I tried both ways but doesn't work :( please . be patient with me XD

so This is what I Added

Code: [Select]
function EraseValueOnPJoin(args)
    p = args.player
    args.player:SetValue("deathpos", nil)
end

Events:Subscribe("PlayerJoin", EraseValueOnPJoin)

function UpdateValueOnDeath(args)
    p = args.player
    deathpos = p:GetPosition()
    args.player:SetValue("deathpos", deathpos) -- is it ok ?
end

Events:Subscribe("PlayerDeath", UpdateValueOnDeath)

function Spawn(args)
    if args.player:GetValue("deathpos") != nil then
    args.player:SetPosition(args.player:GetValue("deathpos") + Vector3(0, 2000, 0))
    else
local default_spawn = true
        if args.player:GetWorld() == DefaultWorld then
        if #self.player_spawns > 0 then
            local position = table.randomvalue( self.player_spawns )           

            args.player:SetPosition( self:RandomizePosition( position ) )
            default_spawn = false
        end
        self:GiveNewWeapons( args.player )
    end

    return default_spawn
    end
 end

Events:Subscribe("PlayerSpawn", Spawn)


6
Scripting support / Re: Any way to get on Bike as passenger?
« on: February 18, 2016, 06:18:49 pm »
You can modify ExtraSeats to include bikes.

Add them to the server script in the same way other vehicles are added. The model IDs can be found here.

You won't be able to see the passenger, though.

 
yep I already did that but thanks for replying ..
I suppose it could be quite difficult to see the passenger ..

7
Scripting support / Any way to get on Bike as passenger?
« on: February 18, 2016, 12:02:40 pm »
I found this topic of a guy who made it once , unfortunately was an unexpected bug XD
there could be any way ?
https://www.jc-mp.com/forums/index.php?topic=3176.0

8
Scripting support / Re: Where can I find F8 GUI commands shortcut?
« on: February 18, 2016, 10:15:58 am »
I wrote my own before Nerd and is  available on my server Gaveroid's at the moment, no plans to release yet, sorry.



no problem !
nice too ;)

9
Scripting support / Re: Where can I find F8 GUI commands shortcut?
« on: February 17, 2016, 07:38:57 pm »
It's likely to be a closed source script. I.e. it's unavailable.

ook . thanks !

10
Releases / Re: [RELEASE] Extra Seats
« on: February 17, 2016, 07:24:26 pm »
Hi. Thanks for this script . I added also the bikes . even if the passenger is not visible , there could be any way to make it visible on the passenger seat ?
Thank you

11
Scripting support / Where can I find F8 GUI commands shortcut?
« on: February 17, 2016, 02:39:12 pm »
I have seen this script in Nercubed Server, with F8 key you can press a button to activate some other scripts without typing the /"command", do anybody have it? I can't find it :(

Thank you

12
Scripting / Re: How to Respawn Players where they died ?
« on: February 17, 2016, 12:21:46 pm »
mmm . so ..

Code: [Select]
function EraseValueOnPJoin(args)
    p = args.player
    -- Set the player's value under string index "deathpos" to be nil
    args.player:SetValue("deathpos") = nil
end

Something like that ?

Code: [Select]
Events:Subscribe("PlayerJoin", EraseValueOnPJoin)



function UpdateValueOnDeath(args)
    p = args.player
    deathPos = p:GetPosition()
    -- Set the player's value under string index "deathpos" to be deathPos
end   

sorry, where exactly ?
Code: [Select]
Events:Subscribe("PlayerDeath", UpdateValueOnDeath)

function Spawn(args)
    if args.player:GetValue("deathpos") != nil then
    args.player:SetPosition(args.player:GetValue("deathpos")(Vector3(0, 2000, 0))) 
    -- Set the player's position to be deathPos plus Vector3(0, 2000, 0)
something like that ?
   
Code: [Select]
else
        GOTO "function Freeroam:PlayerSpawn"

wich is the right command to make it return to the default player spawn command ? :( i Know I'm a noob , I'm sorry !!!!!
   
Code: [Select]
-- Default back to the freeroam spawning code
    end
end

Events:Subscribe("PlayerSpawn", Spawn)

com on guys .. If I donate something to the project . anybody can help me some more ?

13
Releases / Re: [Release] Extraction Map With Player Markers
« on: February 15, 2016, 06:20:21 pm »
Add 2000 to the Y component of the teleport position here:

https://github.com/SinisterRectus/JC2MP-ExtractionMap/blob/master/server/sExtractionMap.lua#L28

Change it to:
Code: [Select]
sender:SetPosition(Vector3(args.position.x, math.max(args.position.y, 200) + 2000, args.position.z))

thanks very much .  ;)
and to teleport immidiately , since while player is falling down, the game should have time to load the world, is it ok to increase helicopter speed as you told in the first post?
I'm trying to keep both these map travels . maybe i'll bind the custom one to F3 or another one ..
Thank you !

Update: Yes edited your values and works like a charm !

Good job !!

14
Scripting / Re: How to Respawn Players where they died ?
« on: February 15, 2016, 01:25:55 am »
if you do some research on these:

https://wiki.jc-mp.com/Lua/Tutorials/Player_values

That should help you enough to convert this pseudocode into usable code

Code: [Select]
function EraseValueOnPJoin(args)
    p = args.player
    -- Set the player's value under string index "deathpos" to be nil
end

Events:Subscribe("PlayerJoin", EraseValueOnPJoin)

function UpdateValueOnDeath(args)
    p = args.player
    deathPos = p:GetPosition()
    -- Set the player's value under string index "deathpos" to be deathPos
end

Events:Subscribe("PlayerDeath", UpdateValueOnDeath)

function Spawn(args)
    if args.player:GetValue("deathpos") != nil then
        -- Set the player's position to be deathPos plus Vector3(0, 2000, 0)
    else
        -- Default back to the freeroam spawning code
    end
end

Events:Subscribe("PlayerSpawn", Spawn)

Replace the lines preceded with '--' with real code (these are comments and are ignored by the Lua interpreter)

I'm sorry but handing out working scripts on this forum of a somewhat complex nature like this is generally frowned upon, as it can encourage dependence on the forums for any problem. I am, however, happy to steer you in the right direction.

yes I understand , Thanks for your encouragement you are very kind, tomorrow I will work on this ! :)

15
Releases / Re: [Release] Extraction Map With Player Markers
« on: February 14, 2016, 11:58:32 pm »
nice script i love it!!
is there any way to teleport as the old Garmelon one ? not on the ground after the heli transaction (that is very nice don't mishunderstand) but immediately 2 km over the ground ?
just to have a try both ways. thank you!

Pages: [1] 2