[-] promitheas@programming.dev 3 points 1 day ago

I'm almost done with my CS degree, I started learning programming at age 10, low-level software development like drivers and embedded really interests me and that's the direction I want to go in for a career, but I had to ask my friend who was studying with me to help me build my PC. Hardware just scares me. I'm worried ill bork something :3

32
submitted 1 week ago* (last edited 1 week ago) by promitheas@programming.dev to c/linux_gaming@lemmy.ml

[SOLUTION AT END OF POST]

Hello again. A few days ago I made the post in the link above which is about getting Silent Hunter 3 working with the LSH3 megamod, and I got a great answer in there to use steamtinkerlaunch to run separate executables just once (e.g. to install JSGME mod manager and to install the actual megamod LSH3).

After playing for a bit I decided I want a little more control over what mods are installed, and decided to switch to the GWX megamod, so I completely uninstalled SH3 and its folder in the steamapps/common folder, and reinstalled it cleanly. Then using wine I ran the 4GB patch so that the game would use 4GB instead of 2GB memory which is required for running many mods. The memory usage can get quite high. After that I loaded all my desired mods with JSGME.

The game starts fine, and I can do all the training missions and the single missions, but I cant start a campaign. After the loading bar for entering a campaign patrol fills up, there is a delay of a couple minutes (normal for GWX as during that stage it is loading all its mods and any other mods you have enabled), and then crashes to desktop. This clearly means that it is running out of memory while loading mods. However after running the patcher to increase the memory limit of the executable I get a new sh3.exe file and my original gets renamed to sh3.exe.Backup, which seems to show that the patch has been applied correctly.

Could anyone help me diagnose this issue please?

Thanks in advance!

Edit 1 (SOLUTION): So what ended up working for me was simply making the game run using proton 6.3-8. I did try version 4.3 as well, but that didnt seem to be working that well with the widegui mod I have. Thanks to all who gave suggestions!

Edit 2: Editing to add 2 more things to the solution. Because of frequent crashes while in the career patrol, I ended up lowering the Particle Density to 90 and also do not create any saves while out on patrol. Not sure which of the two actually stopped the crashing, but so far I've played for about 20 hours with no crash.

[-] promitheas@programming.dev 7 points 1 week ago

Sorry, I dont have any advice to offer as I dont know much or anything at all about lupus, but I just want to encourage you to keep strong. Ive read a few of the comments from people who seem more experienced, and I get the impression that its very possible to live a fairly normal life as long as you make a few changes to lifestyle. Just keep strong, and surround yourself with supportive, positive people and youll get through it. 🫂

21
submitted 2 weeks ago* (last edited 1 week ago) by promitheas@programming.dev to c/linux_gaming@lemmy.ml

Hello guys! Recently re watched Das Boot (amazing film btw for those who haven't seen it, highly recommend) and that inspired me to install my SH3 from steam. The thing is its the first time I'm going to be playing on Linux, and I'm a bit stumped on how I can install the LSH3 supermod. The instructions for the 2022 version of LSH3 state that you simply run the provided .exe (due to this being steam proton I placed it in the game directory but this doesn't seem to be required) and run it. However I can't seem to figure out how I can use an existing proton environment to run an executable which is not the actual steam game for that environment. Can anybody help with this?

As a bonus question, because this game is quite old there are quite a few mods available for it, and the best way to activate them after downloading (on windows at least) is through JSGME. However I also cant figure out how to install that in the game directory. I have downloaded its installer but dont know how to actually run it.

I have included the link to the LSH3 2022 install manual as well as a screenshot of my game directory with files related to this post circled.

Any insight would be amazing!

[-] promitheas@programming.dev 126 points 2 weeks ago

Yea, why are Microsoft forums so bad? I have to use them sometimes as I work in IT and all our PCs run windows. Googling often leads me to their forums. The forums rarely lead me to a solution however

[-] promitheas@programming.dev 22 points 3 weeks ago

What you do for work might be a factor, but i dont think pain to that extent is normal. I would stress to your doctor that basic tasks are painful and that youd like to get checked out anyway. Youve got nothing to lose by getting it checked, only to gain. Im in my mid 20s too and while i get aches in my knees/back occasionally its not debilitating as you describe it.

25

Hello everybody! My brother plays Insurgency Sandstorm a lot and I wanted us to be able to play together, so I got it and after some messing about got it working on my system. One of the things I read in forum posts to do to get it to work on an Arch based system is to install glibc-eac-bin which has some patches to make certain games work (I hope I understood that correctly).

Today when I try to update my system I get the following message and it will not allow me to continue:

:: Starting full system upgrade...

resolving dependencies...

looking for conflicting packages...

:: glibc-2.40+r16+gaa533d58ff-1 and glibc-eac-bin-2.40-1 are in conflict. Remove glibc-eac-bin? [y/N]

I dont want to remove glibc, but i want the message to go away and to be able to proceed with my updates. Any suggestions on what I should do?

Thanks in advance

[-] promitheas@programming.dev 10 points 2 months ago

This. And have a snack before going grocery shopping. Two golden pillars of life

13
submitted 3 months ago* (last edited 3 months ago) by promitheas@programming.dev to c/thinkpad@lemmy.ml

Hello everyone. I just got a new battery for my T480 from my work supplier. It is a Greencell LGC 11 Model: 01AV424 and I get a BIOS message before my bootloader:

The battery installed is not supported by this system and will not charge. Please replace the battery with the correct Lenovo battery for this system. Press the ESC key to continue.

Once I plugged it in and booted up the battery had 74% charge, and I let it discharge until 6% without the AC adaptor plugged in as per the instructions, so that I could then fully charge it (and repeat the process 3-5 times). However, once it reached 6% and I plugged it in it wasn't charging and ended up dropping to 1% where it remains even now. Below I'll include outputs from some commands.

Everything I read online mentions flashing the EC chip to whitelist the battery, or changing the BIOS to something like coreboot. I'd like to avoid flashing any chips unless absolutely the only option, in case something goes wrong and I brick my motherboard. I've tried also resetting the EC chip by pushing the button in the pinhole at the bottom of the laptop with a paper clip, but with no effect.

$ upower -e          
/org/freedesktop/UPower/devices/line_power_AC
/org/freedesktop/UPower/devices/battery_BAT1
/org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o001
/org/freedesktop/UPower/devices/line_power_ucsi_source_psy_USBC000o002
/org/freedesktop/UPower/devices/DisplayDevice

$ upower -i /org/freedesktop/UPower/devices/battery_BAT1            
  native-path:          BAT1
  vendor:               LGC 11
  model:                01AV424
  serial:               14050
  power supply:         yes
  updated:              Tue 11 Jun 2024 12:46:25 EEST (19 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               pending-charge
    warning-level:       none
    energy:              0.41 Wh
    energy-empty:        0 Wh
    energy-full:         22.23 Wh
    energy-full-design:  22.23 Wh
    energy-rate:         0 W
    voltage:             10.296 V
    charge-cycles:       1
    percentage:          1%
    capacity:            100%
    technology:          lithium-ion
    icon-name:          'battery-caution-charging-symbolic'

As you can see the state it is stuck in is "pending-charge"

Any help would be appreciated. Also, if you need any additional info please let me know and I will provide it.

EDIT: Supplier will pick it up from my work in a couple days and try to solve the issue. Hopefully that works, otherwise I'll have to see about flashing the EC chip with the patched firmware to remove the whitelist.

5
submitted 3 months ago* (last edited 3 months ago) by promitheas@programming.dev to c/archlinux@lemmy.ml

Solution at the end of the post

Hello guys. I've recently started experiencing an odd issue with my bspwm setup where on a reboot or upon restarting bspwm in-place I either don't get the top polybar (fixed this by explicitly killing all polybar processes from my bspwm script if they exist and then on a separate line running my launch script), or the gap between the bottom of the windows on my top (secondary) monitor and the bottom edge of the monitor is far too wide. Here is a screenshot of what I mean:

Out of the 20 times give or take that I will restart bspwm either from the terminal or through the sxhkd keybind I set, only once will it actually size itself correctly with the proper gap. The next time I restart it will revert back to this large gap. Here is also my bspwmrc file

#! /bin/sh
# pgrep -x sxhkd > /dev/null || sxhkd -s &
# pgrep -io "sxhkd" || { killall sxhkd; sxhkd > /dev/null 2>&1 & }
pgrep -io "sxhkd" | xargs kill
sxhkd -s &
pgrep -x copyq > /dev/null || copyq &
pgrep -x xfce4-power-manager > /dev/null || xfce4-power-manager &
pgrep -x dunst > /dev/null || dunst &
pgrep -x nm-applet > /dev/null || nm-applet &
pgrep -x picom > /dev/null || picom -b
pgrep -x polybar > /dev/null || $HOME/.config/polybar/launch.sh
if [[ $(xrandr -q | grep "HDMI-A-1 connected") ]];
then
	xrandr --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal
	xrandr --output HDMI-A-1 --mode 1920x1080 --rotate inverted --above HDMI-A-0
	bspc monitor HDMI-A-0 -d 1 2 3 4 5
	bspc monitor HDMI-A-1 -d 6 7 8 9 0
	
	# Fix gap appearing above windows on first monitor after restarting bspwm
	bspc config -m HDMI-A-0 top_padding 3
	bspc config -m HDMI-A-0 bottom_padding 40
	
	# Fix top/bottom margins for secondary monitor
	bspc config -m HDMI-A-1 bottom_padding 3
	bspc config -m HDMI-A-1 top_padding 40
	bspc wm -O HDMI-A-0 HDMI-A-1
else
	# bspc monitor -d I II III IV V VI VII VIII IX X
	bspc monitor HDMI-A-0 -d 1 2 3 4
fi
$HOME/.fehbg &
setxkbmap us
$HOME/.bin/remap-caps-esc
bspc config border_width         2
bspc config window_gap           10
# bspc config 
bspc config split_ratio          0.52
bspc config borderless_monocle   true
bspc config gapless_monocle      true
# Dracula theme
bspc config normal_border_color "#44475a"
bspc config active_border_color "#6272a4"
bspc config focused_border_color "#8be9fd"
bspc config presel_feedback_color "#6272a4"
# Make sure theme cursor is shown when mouse is not over a window, instead of the standard default one
xsetroot -cursor_name left_ptr
bspc rule -a Gimp desktop='^8' state=floating follow=on
bspc rule -a Chromium desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
bspc rule -a Zathura state=tiled
bspc rule -a Passy state=tiled

bspc rule -a scpad sticky=on state=floating rectangle=1896x400+10+50

betterlockscreen -u $HOME/Pictures/wallpapers/ --fx dim --dim 50

The lines where I set bottom_padding for the secondary monitor and top padding for the primary monitor I just commented out but they did not have any effect.

I would really appreciate any help for this. Thanks in advance!

Solution for polybar not launching both bars is to change the single polybar line that checks for any existing instances and runs the launch script if none are found, to 2 lines that will explicitly kill all polybar processes and then run the launch script. I also moved this a bit further down in the file.

pgrep -x polybar > /dev/null | xargs kill
$HOME/.config/polybar/launch.sh

The solution for the gap on the bottom of the second monitor was to move the if check further down in the file, hopefully giving bspwm enough time to set its defaults and then have my values set. It now looks like this:

#! /bin/sh

# pgrep -x sxhkd > /dev/null || sxhkd -s &
# pgrep -io "sxhkd" || { killall sxhkd; sxhkd > /dev/null 2>&1 & }
pgrep -io "sxhkd" | xargs kill
sxhkd -s &

pgrep -x copyq > /dev/null || copyq &
pgrep -x xfce4-power-manager > /dev/null || xfce4-power-manager &
pgrep -x dunst > /dev/null || dunst &
pgrep -x nm-applet > /dev/null || nm-applet &

pgrep -x picom > /dev/null | xargs kill
picom -b

# THESE ARE THE 2 POLYBAR LINES WHERE THE FIRST KILLS ANY EXISTING PROCESSES AND THE SECOND RUNS THE LAUNCH SCRIPT
pgrep -x polybar > /dev/null | xargs kill
$HOME/.config/polybar/launch.sh

$HOME/.fehbg &

setxkbmap us
$HOME/.bin/remap-caps-esc

bspc config border_width         2
bspc config window_gap           10
# bspc config 

bspc config split_ratio          0.52
bspc config borderless_monocle   true
bspc config gapless_monocle      true

# Dracula theme
bspc config normal_border_color "#44475a"
bspc config active_border_color "#6272a4"
bspc config focused_border_color "#8be9fd"
bspc config presel_feedback_color "#6272a4"


# THIS IS THE CHECK FOR WHETHER THERE ARE 2 MONITORS CONNECTED WHICH I MOVED DOWN IN THE FILE
if [[ $(xrandr -q | grep "HDMI-A-1 connected") ]];
then
	xrandr --output HDMI-A-0 --primary --mode 1920x1080 --pos 0x0 --rotate normal
	xrandr --output HDMI-A-1 --mode 1920x1080 --rotate inverted --above HDMI-A-0
	bspc monitor HDMI-A-0 -d 1 2 3 4 5
	bspc monitor HDMI-A-1 -d 6 7 8 9 0
	
	# pgrep -x polybar > /dev/null || $HOME/.config/polybar/launch.sh

	# Fix gap appearing above windows on first monitor after restarting bspwm
	bspc config -m HDMI-A-0 top_padding 3
	bspc config -m HDMI-A-0 bottom_padding 40
	
	# Fix top/bottom margins for secondary monitor
	bspc config -m HDMI-A-1 bottom_padding 3
	bspc config -m HDMI-A-1 top_padding 40

	bspc wm -O HDMI-A-0 HDMI-A-1
else
	# bspc monitor -d I II III IV V VI VII VIII IX X
	bspc monitor HDMI-A-0 -d 1 2 3 4
	# pgrep -x polybar > /dev/null || $HOME/.config/polybar/launch.sh
fi

# Make sure theme cursor is shown when mouse is not over a window, instead of the standard default one
xsetroot -cursor_name left_ptr

bspc rule -a Gimp desktop='^8' state=floating follow=on
bspc rule -a Chromium desktop='^2'
bspc rule -a mplayer2 state=floating
bspc rule -a Kupfer.py focus=on
bspc rule -a Screenkey manage=off
bspc rule -a Zathura state=tiled
bspc rule -a Passy state=tiled

bspc rule -a scpad sticky=on state=floating rectangle=1896x400+10+50

betterlockscreen -u $HOME/Pictures/wallpapers/ --fx dim --dim 50

Note: On booting into the WM the secondary monitor polybar doesn't launch, but it appears after restarting bspwm.

Im not entirely sure if my way of thinking is correct with regards to how bspwm handles the timing of setting default values and then reading its configuration file, but it seems to at least half work now.

[-] promitheas@programming.dev 12 points 3 months ago

I think it refers to producing a single baby, rather than just a baby every month

[-] promitheas@programming.dev 125 points 3 months ago

Gives these vibes

19

Hello everyone! I just wanted to ask if its possible to make mods for Hogwarts Legacy entirely on a Linux machine, and if it is if anyone can point me to any resources to get started with setting it up on Linux (guides specific to making actual mods I can probably find easily and I guess will be relevant regardless of if the guide is made on a Windows machine).

That's all, and thanks in advance!

[-] promitheas@programming.dev 7 points 4 months ago

That looks really good, but im curious how the bright red feels after long term use. I personally wouldnt be able to have such an aggressive colour to look at daily. How is it for you?

[-] promitheas@programming.dev 7 points 4 months ago

Ill check startpage out! Also an interesting blog post regarding kagi. Ive never used it in the past, but now i definitely wouldnt ever even consider it.

[-] promitheas@programming.dev 33 points 4 months ago

As ive grown older i find myself disagreeing more and more with the jedi whom as a child i idolised as paragons of good. But palpatine, vader, and the empire are so many things before being "poor good revolutionaries" trying to take down the status quo simply from the good of their golden hearts. Theres always more than 2 choices people :)

[-] promitheas@programming.dev 9 points 4 months ago

God I wish she'd finished the republic/imperial commando series. The only reason i dont read it once every year is because it hurts too much to know that theres no new book to round it out and complete it.

[-] promitheas@programming.dev 10 points 4 months ago

Its a joke from a new game. Look into Helldivers 2 and the satire of it related to how totalitarian governments use phrases like "managed democracy" and "freedom" to braniwash their populace into doing whatever they want. Great game too

view more: next ›

promitheas

joined 1 year ago