Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openxray: init at 510 #68440

Merged
merged 1 commit into from Oct 13, 2019
Merged

openxray: init at 510 #68440

merged 1 commit into from Oct 13, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 10, 2019

Motivation for this change

X-Ray Engine 1.6 expansion. Original version was used in S.T.A.L.K.E.R.: Call of Pripyat.

To test game either

  • do a fresh install in default folder (example for steam, replace username, install may fail for the first time, just enter the command again)
    nix run nixpkgs.steamcmd -c steamcmd "+@sSteamCmdForcePlatformType windows" +login <username> +force_install_dir ~/.local/share/GSC/SCOP/ +app_update 41700 +quit

or

  • link existing setup (example for steam)
    ln -s ~/.local/share/Steam/steamapps/common/Stalker\ Call\ of\ Pripyat ~/.local/share/GSC/SCOP
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @shatsky

@shatsky
Copy link
Contributor

shatsky commented Sep 10, 2019

Currently game crashes for me disappointed

Builds and runs for me. Maybe you use wrong launch command? Mine is
env LD_LIBRARY_PATH="${openxray}/lib:$LD_LIBRARY_PATH" ${openxray}/bin/xr_3da -fsltx /path/to/SCOP/install/fsgame.ltx
Otherwise might be some GPU driver specific upstream issue, I have i915.

@ghost ghost marked this pull request as ready for review September 12, 2019 05:15
@lheckemann lheckemann added this to the 20.03 milestone Sep 12, 2019
@Mic92
Copy link
Member

Mic92 commented Sep 24, 2019

@GrahamcOfBorg eval

@ghost ghost changed the title openxray: init at 421 openxray: init at 510 Sep 30, 2019
Copy link

@lshelper lshelper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not so bad as expected. It needs to approve.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/stalker-call-of-pripyat-game-for-nixos/4271/1

@Lassulus
Copy link
Member

Lassulus commented Oct 7, 2019

I would try to test it this week, I just need to figure out where I copy the game files to and if I can just get them from my steamapps/common folder

@Lassulus
Copy link
Member

Lassulus commented Oct 7, 2019

thanks, I'm getting this error now when running xr_3da

! Couldn't create surface from image: Couldn't open logo.bmp
OpenXRay Rx64 build -10615, Jan  1 1970
Custom build from commit[] branch[]
 
command line 2 

* CPU features: RDTSC, MMX, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX
* CPU cores/threads: 4/4
* CPU current freq: 2137 MHz

Initializing File System...
using fs-ltx fsgame.ltx
FS: 39096 files cached 29 archives, 12Kb memory used.
Init FileSystem 0.329968 sec
-----loading \home\games\.local\share\GSC\SCOP\gamedata\configs\system.ltx
-----loading \home\games\.local\share\GSC\SCOP\gamedata\configs\system.ltx
Starting INPUT device...
No game controllers available
Available joysticks[1]:
Loading module: xrRender_GL
Available render modes[2]:
renderer_gl
Executing config-script "user.ltx"...
~ Invalid syntax in call to 'renderer'
~ Valid arguments: renderer_gl
[\home\games\.local\share\GSC\SCOP\user.ltx] successfully loaded.
Selected renderer: renderer_gl
Loading module: xrGame
Initializing Engine...
Executing config-script "\home\games\.local\share\GSC\SCOP\gamedata\configs\default_controls.ltx"...
! Can't find a key name for kUNKNOWN
! Can't find a key name for kPOWER
! Can't find a key name for kF13
! Can't find a key name for kF14
! Can't find a key name for kF15
! Can't find a key name for kF16
! Can't find a key name for kF17
! Can't find a key name for kF18
! Can't find a key name for kF19
! Can't find a key name for kCUT
! Can't find a key name for kCOPY
! Can't find a key name for kPASTE
! Can't find a key name for kMUTE
! Can't find a key name for kVOLUMEUP
! Can't find a key name for kVOLUMEDOWN
! Can't find a key name for kINTERNATIONAL1
! Can't find a key name for kINTERNATIONAL2
! Can't find a key name for kYEN
! Can't find a key name for kINTERNATIONAL4
! Can't find a key name for kINTERNATIONAL5
! Can't find a key name for kINTERNATIONAL6
! Can't find a key name for kINTERNATIONAL7
! Can't find a key name for kINTERNATIONAL8
! Can't find a key name for kINTERNATIONAL9
! Can't find a key name for kHANGUL
! Can't find a key name for kHANJA
! Can't find a key name for kKATAKANA
! Can't find a key name for kHIRAGANA
! Can't find a key name for kZENHANKAKU
! Can't find a key name for kLANG6
! Can't find a key name for kLANG7
! Can't find a key name for kLANG8
! Can't find a key name for kLANG9
! Can't find a key name for kAUDIONEXT
! Can't find a key name for kAUDIOPREV
! Can't find a key name for kAUDIOSTOP
! Can't find a key name for kAUDIOPLAY
! Can't find a key name for kMEDIASELECT
! Can't find a key name for kWWW
! Can't find a key name for kMAIL
! Can't find a key name for kCALCULATOR
! Can't find a key name for kCOMPUTER
! Can't find a key name for kNUMPAD_AC_SEARCH
! Can't find a key name for kNUMPAD_AC_HOME
! Can't find a key name for kNUMPAD_AC_BACK
! Can't find a key name for kNUMPAD_AC_FORWARD
! Can't find a key name for kNUMPAD_AC_REFRESH
! Can't find a key name for kNUMPAD_AC_BOOKMARKS
! Can't find a key name for kBRIGHTNESSDOWN
! Can't find a key name for kBRIGHTNESSUP
! Can't find a key name for kDISPLAYSWITCH
! Can't find a key name for kKBDILLUMTOGGLE
! Can't find a key name for kKBDILLUMDOWN
! Can't find a key name for kKBDILLUMUP
! Can't find a key name for kEJECT
! Can't find a key name for kSLEEP
! Can't find a key name for kAPP1
! Can't find a key name for kAPP2
[\home\games\.local\share\GSC\SCOP\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
Executing config-script "\home\games\.local\share\GSC\SCOP\gamedata\configs\rspec_high.ltx"...
[\home\games\.local\share\GSC\SCOP\gamedata\configs\rspec_high.ltx] successfully loaded.
! Unknown command:  ai_animation_stats
! Unknown command:  ai_dbg_alife
! Unknown command:  ai_dbg_anim
! Unknown command:  ai_dbg_brain
! Unknown command:  ai_dbg_cover
! Unknown command:  ai_dbg_destroy
! Unknown command:  ai_dbg_dialogs
! Unknown command:  ai_dbg_frustum
! Unknown command:  ai_dbg_funcs
! Unknown command:  ai_dbg_goap
! Unknown command:  ai_dbg_goap_object
! Unknown command:  ai_dbg_goap_script
! Unknown command:  ai_dbg_inactive_time
! Unknown command:  ai_dbg_infoportion
! Unknown command:  ai_dbg_lua
! Unknown command:  ai_dbg_monster
! Unknown command:  ai_dbg_motion
! Unknown command:  ai_dbg_serialize
! Unknown command:  ai_dbg_stalker
! Unknown command:  ai_dbg_vision
! Unknown command:  ai_debug
! Unknown command:  ai_draw_game_graph
! Unknown command:  ai_draw_game_graph_objects
! Unknown command:  ai_draw_game_graph_real_pos
! Unknown command:  ai_draw_game_graph_stalkers
! Unknown command:  ai_draw_visibility_rays
! Unknown command:  ai_ignore_actor
! Unknown command:  ai_nil_object_access
! Unknown command:  ai_obstacles_avoiding
! Unknown command:  ai_obstacles_avoiding_static
! Unknown command:  ai_smart_cover_animation_speed_factor
! Unknown command:  ai_smart_factor
! Unknown command:  ai_stats
! Unknown command:  ai_use_smart_covers
! Unknown command:  ai_use_smart_covers_animation_slots
! Unknown command:  air_resistance_epsilon
! Unknown command:  bemsg
! Unknown command:  dbg_bones_snd_player
! Unknown command:  dbg_destroy
! Unknown command:  dbg_draw_actor_alive
! Unknown command:  dbg_draw_actor_dead
! Unknown command:  dbg_draw_actor_phys
! Unknown command:  dbg_draw_animation_movement_controller
! Unknown command:  dbg_draw_autopickupbox
! Unknown command:  dbg_draw_bullet_hit
! Unknown command:  dbg_draw_camera_collision
! Unknown command:  dbg_draw_car_plots_all_trans
! Unknown command:  dbg_draw_character_binds
! Unknown command:  dbg_draw_character_bones
! Unknown command:  dbg_draw_character_physics
! Unknown command:  dbg_draw_character_physics_pones
! Unknown command:  dbg_draw_climbable
! Unknown command:  dbg_draw_customdetector
! Unknown command:  dbg_draw_customzone
! Unknown command:  dbg_draw_fb_crosshair
! Unknown command:  dbg_draw_invitem
! Unknown command:  dbg_draw_ph_car_dynamics
! Unknown command:  dbg_draw_ph_car_plots
! Unknown command:  dbg_draw_ph_cashed_tries_stats
! Unknown command:  dbg_draw_ph_contacts
! Unknown command:  dbg_draw_ph_death_boxes
! Unknown command:  dbg_draw_ph_enabled_aabbs
! Unknown command:  dbg_draw_ph_explosion_position
! Unknown command:  dbg_draw_ph_explosions
! Unknown command:  dbg_draw_ph_hit_anims
! Unknown command:  dbg_draw_ph_hit_app_pos
! Unknown command:  dbg_draw_ph_ik_blending
! Unknown command:  dbg_draw_ph_ik_collision
! Unknown command:  dbg_draw_ph_ik_goal
! Unknown command:  dbg_draw_ph_ik_limits
! Unknown command:  dbg_draw_ph_ik_predict
! Unknown command:  dbg_draw_ph_ik_shift_object
! Unknown command:  dbg_draw_ph_intersected_tries
! Unknown command:  dbg_draw_ph_mass_centres
! Unknown command:  dbg_draw_ph_negative_tries
! Unknown command:  dbg_draw_ph_positive_tries
! Unknown command:  dbg_draw_ph_ray_motions
! Unknown command:  dbg_draw_ph_saved_tries
! Unknown command:  dbg_draw_ph_statistics
! Unknown command:  dbg_draw_ph_tri_point
! Unknown command:  dbg_draw_ph_tri_test_aabb
! Unknown command:  dbg_draw_ph_tri_trace
! Unknown command:  dbg_draw_ph_tries_changes_sign
! Unknown command:  dbg_draw_ph_zbuffer_disable
! Unknown command:  dbg_draw_ragdoll_spawn
! Unknown command:  dbg_draw_rp
! Unknown command:  dbg_draw_skeleton
! Unknown command:  dbg_draw_teamzone
! Unknown command:  dbg_dump_physics_step
! Unknown command:  dbg_imotion_collide_debug
! Unknown command:  dbg_imotion_draw_skeleton
! Unknown command:  dbg_imotion_draw_velocity
! Unknown command:  dbg_imotion_draw_velocity_scale
! Unknown command:  dbg_ph_actor_restriction
! Unknown command:  dbg_ph_ai_always_phmove
! Unknown command:  dbg_ph_ai_never_phmove
! Unknown command:  dbg_ph_character_control
! Unknown command:  dbg_ph_ik
! Unknown command:  dbg_ph_ik_limits
! Unknown command:  dbg_ph_ik_off
! Unknown command:  dbg_ph_ladder
! Unknown command:  dbg_ph_obj_collision_damage
! Unknown command:  dbg_ph_vel_collid_damage_to_display
! Unknown command:  dbg_show_ani_info
! Unknown command:  dbg_text_height_scale
! Unknown command:  dbg_track_obj
! Unknown command:  dbg_track_obj_blends_ammount
! Unknown command:  dbg_track_obj_blends_bp_0
! Unknown command:  dbg_track_obj_blends_bp_1
! Unknown command:  dbg_track_obj_blends_bp_2
! Unknown command:  dbg_track_obj_blends_bp_3
! Unknown command:  dbg_track_obj_blends_dump
! Unknown command:  dbg_track_obj_blends_flags
! Unknown command:  dbg_track_obj_blends_mix_params
! Unknown command:  dbg_track_obj_blends_motion_name
! Unknown command:  dbg_track_obj_blends_state
! Unknown command:  dbg_track_obj_blends_time
! Unknown command:  death_anim_debug
! Unknown command:  death_anim_velocity
! Unknown command:  debug_character_material_load
! Unknown command:  debug_destroy
! Unknown command:  debug_step_info
! Unknown command:  debug_step_info_load
! Unknown command:  error_line_count
! Unknown command:  g_god
! Unknown command:  g_no_clip
! Unknown command:  g_unlimitedammo
! Unknown command:  hit_anims_block_blend
! Unknown command:  hit_anims_channel_factor
! Unknown command:  hit_anims_power
! Unknown command:  hit_anims_reduce_blend
! Unknown command:  hit_anims_reduce_blend_factor
! Unknown command:  hit_anims_rotational_power
! Unknown command:  hit_anims_side_sensitivity_threshold
! Unknown command:  hit_anims_tune
! Unknown command:  inv_upgrades_log
! Unknown command:  lua_gcstep
! Unknown command:  mm_net_filter_battleye
! Unknown command:  mm_net_use_battleye
! Unknown command:  mt_ai_vision
! Unknown command:  mt_alife
! Unknown command:  mt_bullets
! Unknown command:  mt_detail_path
! Unknown command:  mt_level_path
! Unknown command:  mt_level_sounds
! Unknown command:  mt_map
! Unknown command:  mt_network
! Unknown command:  mt_object_handler
! Unknown command:  mt_particles
! Unknown command:  mt_physics
! Unknown command:  mt_script_gc
! Unknown command:  mt_sound
! Unknown command:  mt_sound_player
! Unknown command:  net_cl_pending_lim
! Unknown command:  net_cl_update_rate
! Unknown command:  net_dump_size
! Unknown command:  ph_break_common_factor
! Unknown command:  ph_gravity
! Unknown command:  ph_rigid_break_weapon_factor
! Unknown command:  ph_timefactor
! Unknown command:  ph_tri_clear_disable_count
! Unknown command:  ph_tri_query_ex_aabb_rate
! Unknown command:  psp_cam_offset
! Unknown command:  r1_no_detail_textures
! Unknown command:  r2_dhemi_count
! Unknown command:  r2_dhemi_light_flow
! Unknown command:  r2_dhemi_light_scale
! Unknown command:  r2_dhemi_sky_scale
! Unknown command:  r2_dhemi_smooth
! Unknown command:  r2_hbao
! Unknown command:  r2_mt
! Unknown command:  r2_use_nvdbt
! Unknown command:  r__d_tree_w_amp
! Unknown command:  r__d_tree_w_rot
! Unknown command:  r__d_tree_w_speed
! Unknown command:  r__d_tree_wave
! Unknown command:  r__detail_l_ambient
! Unknown command:  r__detail_l_aniso
! Unknown command:  r__lsleep_frames
! Unknown command:  r__ssa_glod_end
! Unknown command:  r__ssa_glod_start
! Unknown command:  r__wallmark_shift_pp
! Unknown command:  r__wallmark_shift_v
~ Invalid syntax in call to 'renderer'
~ Valid arguments: renderer_gl
! Unknown command:  rs_clear_bb
! Unknown command:  rs_constant_fps
! Unknown command:  rs_detail
! Unknown command:  rs_occ_draw
! Unknown command:  rs_occ_stats
! Unknown command:  rs_occlusion
! Unknown command:  rs_render_dynamics
! Unknown command:  rs_render_statics
! Unknown command:  rs_wireframe
! Unknown command:  show_wnd_rect_all
! Unknown command:  snd_stats
! Unknown command:  snd_stats_ai_dist
! Unknown command:  snd_stats_info_name
! Unknown command:  snd_stats_info_object
! Unknown command:  snd_stats_max_dist
! Unknown command:  snd_stats_min_dist
! Unknown command:  stalker_death_anim
! Unknown command:  string_table_error_msg
! Unknown command:  sv_console_update_rate
! Unknown command:  sv_ignore_money_on_buy
! Unknown command:  sv_skip_winner_waiting
! Unknown command:  sv_wait_for_players_ready
! Unknown command:  time_factor
! Unknown command:  time_factor_single
! Unknown command:  vid_bpp
[\home\games\.local\share\GSC\SCOP\user.ltx] successfully loaded.
SOUND: OpenAL: enumerate devices...
SOUND: OpenAL: EnumerationExtension Present
devices OpenAL Soft
SOUND: OpenAL: system  default SndDevice name is OpenAL Soft
SOUND: OpenAL: All available devices:
1. OpenAL Soft, Spec Version 1.1 (default) eax[0] efx[yes] xram[no]
SOUND: Selected device is OpenAL Soft
* sound: EAX 2.0 extension: absent
* sound: EAX 2.0 deferred: absent
* sound : cache: 65537 kb, 4856 lines, 13820 bpl
Starting RENDER device...
Could not create drawing context: Could not create GL context: GLXBadFBConfig
 
FATAL ERROR
 
[error] Expression    : <no expression>
[error] Function      : handler_base
[error] File          : /build/source/src/xrCore/xrDebug.cpp
[error] Line          : 839
[error] Description   : segmentation fault
 

stack trace:

/nix/store/z551kzplykq6jzfgz1jfzaj8ys300m4q-OpenXRay-510/lib/xrCore.so(_ZN7xrDebug10GatherInfoEPcmRK13ErrorLocationPKcS5_S5_S5_+0x1cf) [0x7f393d9336ef]
/nix/store/z551kzplykq6jzfgz1jfzaj8ys300m4q-OpenXRay-510/lib/xrCore.so(_ZN7xrDebug4FailERbRK13ErrorLocationPKcS5_S5_S5_+0x91) [0x7f393d933891]
/nix/store/z551kzplykq6jzfgz1jfzaj8ys300m4q-OpenXRay-510/lib/xrCore.so(+0x44f37) [0x7f393d933f37]
/nix/store/6yaj6n8l925xxfbcd65gzqx3dz7idrnn-glibc-2.27/lib/libc.so.6(+0x35c50) [0x7f393bbdcc50]

@Lassulus
Copy link
Member

Lassulus commented Oct 8, 2019

I think so?

games~/.local/share/GSC ls -la
total 20
drwx------ 1 games nogroup    10 Oct  7 20:06 .
drwx------ 1 games nogroup   382 Oct  7 20:04 ..
-rw-r--r-- 1 games nogroup 13335 Oct  7 20:06 1
lrwxrwxrwx 1 games nogroup    72 Oct  7 20:05 SCOP -> '/home/games/.local/share/Steam/steamapps/common/Stalker Call of Pripyat/'

@ghost
Copy link
Author

ghost commented Oct 12, 2019

@Lassulus
Could not create drawing context: Could not create GL context: GLXBadFBConfig
I see they require OpenGL 4.5

@Lassulus
Copy link
Member

oh ok, I will test it on another computer tomorrow then

Copy link
Member

@Lassulus Lassulus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alright, tested it with nix-review, started the game, talked with an NPC.

@Lassulus Lassulus merged commit 84c09b1 into NixOS:master Oct 13, 2019
@ghost
Copy link
Author

ghost commented Oct 13, 2019

@Lassulus Thank you!

@ghost ghost deleted the openxray branch October 13, 2019 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants