Coder Social home page Coder Social logo

segabl / pd2-third-person Goto Github PK

View Code? Open in Web Editor NEW
12.0 7.0 7.0 207 KB

Experimental BLT mod that implements and enables third person mode

License: GNU General Public License v3.0

Lua 100.00%
payday2 blt-mod experimental payday-2 paydaymods camera thirdperson mod

pd2-third-person's Introduction

Third Person

This is an experimental mod that enables third person mode. It has adjustable camera settings and keybinds to change some options on the fly.

WARNING

This is might not play well with character, weapon or other related mods and could crash your game.

Known issues

  • Animations are incorrect on ziplines and during jumping
  • Aiming in third person is difficult since the aim point is not the screen center
  • Activating bipods does not work in third person

pd2-third-person's People

Contributors

8bitsein avatar chromka avatar deadnem avatar elcomeback avatar gabsf avatar kazenin avatar makinday avatar pjzuza avatar segabl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pd2-third-person's Issues

Multijump issue

Application has crashed: C++ exception
[string "lib/network/base/handlers/basenetworkhandler.lua"]:46: attempt to index local 'rpc' (a nil value)

SCRIPT STACK

_verify_character_and_sender() lib/network/base/handlers/basenetworkhandler.lua:63
lib/network/handlers/unitnetworkhandler.lua:176
send_to_peers_synched() @mods/Third Person/lua/basenetworksession.lua:52
send() lib/network/base/extensions/networkbaseextension.lua:11
_update_network_jump() lib/units/beings/player/states/playerstandard.lua:4002
_update_movement() lib/units/beings/player/states/playerstandard.lua:1087
original() lib/units/beings/player/states/playerstandard.lua:422
update_original() @mods/base/req/core/Hooks.lua:260
update_original() @mods/Seamlink Gameplay Overhaul/lua/sliding.lua:51
update() @mods/WolfHud/lua/BurstFire.lua:212
lib/units/beings/player/playermovement.lua:275

Crash after connect to server

`Application has crashed: access violation


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
                       ???  (???)     ???                                                 
                       ???  (???)     ???                                                 
                       ???  (???)     ???                                                 

Current thread: Main
Script stack:
lib/units/cameras/fpcameraplayerbase.lua:1827
play_redirect()
=[C] play_redirect()
lib/units/cameras/fpcameraplayerbase.lua:1228
play_redirect()
lib/units/beings/player/playercamera.lua:129 _start_action_equip()
lib/units/beings/player/states/playerstandard.lua:1712
_enter()
lib/units/beings/player/states/playerstandard.lua:286 enter_original()
lib/units/beings/player/states/playerstandard.lua:205
enter()
@mods/WolfHud/lua/Interaction.lua:75 change_state()
lib/units/beings/player/playermovement.lua:302
_change_player_state()
lib/managers/playermanager.lua:952 spawned_player_original()
lib/managers/playermanager.lua:928
spawned_player()
@mods/WolfHud/lua/GameInfoManager.lua:2734 set_unit_original()
lib/network/base/networkpeer.lua:2285
set_unit()
@mods/Third Person/lua/networkpeer.lua:11
lib/network/handlers/unitnetworkhandler.lua:48 `

Crash after trying to pick up the bomb on the Dockyard Heist | Incompatible with other mods?

  • If a host picks a bomb himself/herself. This will be a crashlog a host have
Crash.txt Fri May 04 16:42:34 2018

Application has crashed: access violation


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 

Current thread: Main
Script stack:
_create_carry_unit() lib/units/beings/player/huskplayermovement.lua:408
set_visual_carry() lib/units/beings/player/huskplayermovement.lua:380
send_to_peers_synched() @mods/Third
Person/lua/basenetworksession.lua:37
update_synced_carry_to_peers()
lib/managers/playermanager.lua:2906 set_carry()
lib/managers/playermanager.lua:4405
interact()
lib/units/interactions/interactionext.lua:2033 end_action_interact_original()
lib/managers/objectinteractionmanager.lua:86
end_action_interact()
@mods/WolfHUD/lua/GameInfoManager.lua:2125 _end_action_interact()
lib/units/beings/player/states/playerstandard.lua:2419
_update_interaction_timers()
lib/units/beings/player/states/playerstandard.lua:2463 _update_check_actions()
lib/units/beings/player/states/playerstandard.lua:870
fs_original_playerstandard_update()
lib/units/beings/player/states/playerstandard.lua:436 update()
@mods/Full
Speed
Swarm/lua/playerstandard.lua:6 lib/units/beings/player/playermovement.lua:343


System information:
Application version : 1.89.592.
CPU : Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz (2 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 10.0
GPU : NVIDIA GeForce GTX 750 Ti / nvd3dum.dll[22.21.13.8569]
Language : english
Memory : 8155MB 504KB
OS : 6.1.7601 (Service Pack 1) 0x100-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : Microsoft (Speakers (JBL Pebbles))

  • If a client picks a bomb. This is a crashlog that the host will get.
Crash.txt Application has crashed: access violation

Callstack:

     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     zip_get_name                                        
     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     ???                                                
     payday2_win32_release  (???)     ???                                                
               steamclient  (???)     Steam_TerminateGameConnection                      
                       ???  (???)     ???                                                
                       ???  (???)     ???                                                

Current thread: Main
Script stack:
_create_carry_unit() lib/units/beings/player/huskplayermovement.lua:408
set_visual_carry() lib/units/beings/player/huskplayermovement.lua:380
set_synced_carry() lib/managers/playermanager.lua:2928
lib/network/handlers/unitnetworkhandler.lua:2340


  • I'll do more test again by having only Third Person mod and no Full Speed Swarm mod and Wolfhud mod.
    Edit: I've done a quick run and I still got the same crashlog I think
Crash.txt Application has crashed: access violation

Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 

Current thread: Main
Script stack:
_create_carry_unit() lib/units/beings/player/huskplayermovement.lua:408
set_visual_carry() lib/units/beings/player/huskplayermovement.lua:380
send_to_peers_synched() @mods/Third
Person/lua/basenetworksession.lua:37
update_synced_carry_to_peers()
lib/managers/playermanager.lua:2906 set_carry()
lib/managers/playermanager.lua:4405
interact()
lib/units/interactions/interactionext.lua:2033 end_action_interact()
lib/managers/objectinteractionmanager.lua:86
_end_action_interact()
lib/units/beings/player/states/playerstandard.lua:2419 _update_interaction_timers()
lib/units/beings/player/states/playerstandard.lua:2463
_update_check_actions()
lib/units/beings/player/states/playerstandard.lua:870 update()
lib/units/beings/player/states/playerstandard.lua:436
lib/units/beings/player/playermovement.lua:343


  • The last test I've done was testing the game without Third Person mod but I still kept Full Speed Swarm mod and WolfHUD mod. No crash after picking up a bomb.

Animation bug when getting cuffed

When getting cuffed the player will just stand still until they are rescued or break free in which they will then be stuck in a cuffed state visually. They can move, and this eventually will change to a jumping stance, but from there forward the player movement animations are frozen.

Contourtext.lua

V0.5
Using "Remove Teammates Outline" from dr_newbie "http://modwork.shop/21420" make the game crash
the mod just remove the outlines on team mate. here's the crashlog

`
Mon Dec 04 23:06:42 2017

Application has crashed: C++ exception
[string "lib/units/contourext.lua"]:412: bad argument #1 to 'ipairs' (table expected, got nil)

SCRIPT STACK

_remove() lib/units/contourext.lua:412
remove() lib/units/contourext.lua:341
setup_unit() @mods/Third Person/thirdperson.lua:205
set_unit() @mods/Third Person/lua/networkpeer.lua:9
spawn_unit_original() lib/network/base/networkpeer.lua:2132
spawn_unit() @mods/Bot Weapons/lua/networkpeer.lua:5
spawn_players() lib/network/base/basenetworksession.lua:1498
update_original() lib/states/ingamewaitingforplayers.lua:262
update_actual() @mods/WolfHUD/lua/MenuTweaks.lua:592
Run() @mods/TranslucentMissionBriefingGUI/ingamewaitingforplayers.lua:145
update() @mods/PocoHud3/poco/../poco/Hud3.lua:2953
update() core/lib/utils/game_state_machine/coregamestatemachine.lua:92
update() lib/setups/setup.lua:784
update() lib/setups/gamesetup.lua:654
_update() lib/setups/networkgamesetup.lua:21
update() @mods\PocoHud3\poco\common.lua:310
core/lib/setups/coresetup.lua:537

-------------------------------`

No weapon crash the game

v0.5
using the no weapon mod https://modworkshop.net/mydownloads.php?action=view_down&did=18961
its a custom weapon addon that just create an empty weapon. switching to this weapon crash the game.
the vulcan minigun is displayed when on tps when playing with others

heres the crashlog

Mon Dec 04 23:12:17 2017

Application has crashed: C++ exception
[string "core/lib/utils/corestring.lua"]:63: bad argument #1 to 'gmatch' (string expected, got nil)

SCRIPT STACK

split() core/lib/utils/corestring.lua:63
add_unit_by_factory_name() lib/units/beings/player/huskplayerinventory.lua:98
_perform_switch_equipped_weapon() @mods/Third Person/thirdperson.lua:183
synch_equipped_weapon() lib/units/beings/player/huskplayerinventory.lua:20
lib/network/handlers/unitnetworkhandler.lua:74
send_to_peers_synched() @mods/Third Person/lua/basenetworksession.lua:52
send() lib/network/base/extensions/networkbaseextension.lua:11
_send_equipped_weapon() lib/units/beings/player/playerinventory.lua:374
equip_next() lib/units/beings/player/playerinventory.lua:330
_start_action_equip_weapon() lib/units/beings/player/states/playerstandard.lua:5045
_start_action_equip_weapon() @mods/GoonMod Weapon Customizer Standalone/lua/PlayerStandard.lua:12
_update_equip_weapon_timers_original() lib/units/beings/player/states/playerstandard.lua:3201
_update_equip_weapon_timers() @mods/WolfHUD/lua/GameInfoManager.lua:3461
_update_check_actions() lib/units/beings/player/states/playerstandard.lua:821
update_original() lib/units/beings/player/states/playerstandard.lua:414
master_PlayerStandard_update() @mods/WolfHUD/lua/BurstFire.lua:212
update() @mods/Carry-Stacker-Reloaded/lua/playerstandard.lua:7
lib/units/beings/player/playermovement.lua:275


[Possible bug] Disbled Starts in third person option but a player still turned back into the third person mode.

I think this is a bug. Here is how to reproduce it.

  • If "Starts in third person" hasn't been checked but "Aiming down sights activates first person" has been checked.
  • When starting a heist in the first person mode(while this mod is still enabled of course) If the player use a weapon. Any weapons I think. Then hold right mouse button to aim then release it. The view will become the third person mode again.

Note that I'm not sure much though cause I've other mods as well.

Im an idiot

The crashing was a seperate issue and i fixed it.
and the 3 person model locking up was already known by you sorry.

basenetworkhandler.lua

Application has crashed: C++ exception
[string "lib/network/base/handlers/basenetworkhandler.lua"]:46: attempt to index local 'rpc' (a nil value)

SCRIPT STACK

lib/network/base/handlers/connectionnetworkhandler.lua:598


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        
     payday2_win32_release  (???)     zip_get_name                                        

Current thread: Main


Crashes

`SCRIPT STACK

set_unit() @mods/Third Person/lua/networkpeer.lua:13
pre_destroy() lib/units/beings/player/playerbase.lua:418
lib/units/beings/player/playersound.lua:23
unload_all_units() =[C]
core/lib/setups/coresetup.lua:629`

Ask Bot to Fix the Drill

without this mod - no crashes from ABFD

Application has crashed: C++ exception
mods/Ask Bot to Fix the Drill/lua/jammed_event.lua:64: attempt to call method 'PlaceMyWaypoint' (a nil value)

SCRIPT STACK

update_original() @mods/base/req/core/Hooks.lua:178
@mods/WolfHud/lua/GameInfoManager.lua:1742


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     zip_get_name                                        
     payday2_win32_release  (???)     zip_get_name                                        

Current thread: Main


Problem when hosting pubs

I have just been accused of hacking due to a bug in the mod or game.
Some random guy with a mic joined (i wont give his name) mid game on a First world bank heist.
He first noted that the cops were "Slow" and didn't shoot him. then he noted that there was a second me in the game a few feet from me standing staring at a wall. and then he got very rude and started calling me a hacker and insisted that I was using Pirate perfection. it was a very sad and anger enducing moment for me. But i want this to stop. I searched on the steam forums for any cloning bug in the game and came up empty. What can I do to help you understand my perdicament.
BTW this only happens when Third Person is active.
And I'm sorry if I sound rude, I'm still cooling off from the Hacusation.

The mod is not compatible with NBGTO mod's kicking feature

Crash.txt

Application has crashed: access violation


Callstack:

     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 
     payday2_win32_release  (???)     ???                                                 

Current thread: Main
Script stack:
set_running() lib/units/beings/player/states/playerstandard.lua:4482
_start_action_running() lib/units/beings/player/states/playerstandard.lua:1541
_check_action_run() lib/units/beings/player/states/playerstandard.lua:4454
_update_check_actions() lib/units/beings/player/states/playerstandard.lua:930
update() lib/units/beings/player/states/playerstandard.lua:424
lib/units/beings/player/playermovement.lua:318


System information:
Application version : 1.85.486.
CPU : Intel(R) Core(TM) i5 CPU 750 @ 2.67GHz (2 cores); SSE; SSE2; SSE3; SSSE3; SSE4.1; SSE4.2
DirectX : 10.0
GPU : NVIDIA GeForce GTX 750 Ti / nvd3dum.dll[22.21.13.8569]
Language : english
Memory : 8155MB 504KB
OS : 6.1.7601 (Service Pack 1) 0x100-0x1 (64 bits)
Physics : threaded
Renderer : DX9 threaded
Sound : Microsoft (Speakers (JBL Pebbles))


I have the hour filter feature on NBGTO and it will kick a player who has lower gameplay hours than in the hour filter. NBGTO mod works as it should be but if I have used this mod too. After the player get kicked. The game will be crashed and there will be a crash log like above. It happens in every heists as far as I have tested.

And I am sure it is this mod because I've taken off Third Person mod and I have kept other mods (Including Full speed swarm mods, WolfHud, NBGTO and Cheater Kicker ) no crash.

Mod confliction: Pocohud causing studder

Not sure if it's worth it for the creator to look into, but when using pocohud (updated Oct 29th) the third person player animations will studder and glitch 24/7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.