Skip to content

u/jambrs

In this archive from Jun 2016 to Jul 2019

4
posts
18
comments
0
media
185
score

It's kind of useful in Arch, but most useful in slow release distributions. You can get stuff like Spotify or Discord if you want without going through the AUR. But say if you were on a LTS release and wanted the latest blender, you could get the flatpak (though I suppose you could download it from their site as well).

Also, there's supposed to be a plugin for it. something like gnome-software-store-plugin but I forget. it's in the debian setup guide, gnome-software-plugin-flatpak. That should get it in there.

Edit: Forgot to say, I do use it sparingly. I Installed discord with it, though like I said, I don't find it as useful if your distro is rolling release.

1 points

Yeah I understand completely (as I'm trying to make some kind of minimally complex 3d game with simple graphics).

​

Some tutorials that'd be helpful to me right now though are pieces of a bigger puzzle. If I was to request a video, it'd be placing two objects. A player and an NPC (as capsules would be fine). Then showing how you'd have them interact (like talking, attacking, etc) and in a way where if you make more of either and they'd work without extra code. The tutorials always just throw everything in the main scene and don't create separate scenes like you're "supposed to" for objects you're going to reuse. Just seeing a video on properly implementing that would help me out.

3 points

I'm not an expert by any means, but I always find my issues are never really Arch issues, but specific to software. I feel Arch does a pretty damn good job of keeping itself separate from the software you run.

20 points

How I learned to install Arch Linux in under 30 minutes (Manjaro hates him).

  1. Take 1 to 3 days to install it for the first time. Lose some years on your life.
  2. fuck something up and have to reinstall the whole thing (repeat dozens of times, not realizing you could just echo LANG=en_US.UTF-8 >> /etc/locale.conf after the fact)
  3. play pacman roulette and bork your system
  4. Decide you want to try different distros and see if the grass is greener on the other side
  5. Turns out the grass is not greener and go back to Arch because you get frustrated with all the crap they install with other distros.
  6. Forever go back between 4 and 5. (You're now able to install Arch in under a half hour with only screwing it up 35% of the time)
116 points

So you can see what you're doing,

First thing I do when installing arch on a laptop with 3200x1800 display:

If I'm using efi:

pacman -Sy terminus-font
setfont ter-132n

# when arch-chroot /mnt
pacman -S terminus-font
echo FONT=ter-132n >> /etc/vconsole.conf
vi /etc/mkinitcpio.conf
#add consolefont in modules section (I do it before blocks and after keyboard and keymap if I'm using encyrpt)

​

1 points

It's the grub boot loader configuration. It's where you can set kernel parameters, change how long grub takes to count down, add a theme, etc.

​

https://wiki.archlinux.org/index.php/GRUB#Generated_grub.cfg

​

edit: by the way, when you mount your efi directory, it should be to /mnt/boot, and not /mnt/efi or /mnt/boot/efi then when you install grub, it should be /boot not /mnt/boot, /boot/efi or /efi

edit 2: I'm watching the video right now and a tip I have for installing arch is I don't bother with any other partitions other than /boot (if I'm using efi) and /. I don't find my systems have ever written to a swap, I also like to do full disk encryption and using systemd-swap is easier.

so, I'd just make a efi partition, mount it to /boot, make a ext4 partition and mount it to /mnt. It'll streamline your installation a little bit and maybe make it a little easier for you.

edit 3: Just noticed you mkdir /mnt/boot before mounting /mnt. You need to mount your root partition first then make the boot directory, then mount the boot directory.

2 points

So, what I do is,

  1. In fdisk, create a gpt table, create a partition with +512M size, then hit t for type and 1 for efi
  2. Finish creating the remaining partitions and write to disk
  3. lsblk to see your partition layout.
  4. mkfs.vfat -F32 /dev/sda1 (sda1 being the first partition you created for /boot , substitute for whatever it really is)
  5. mkfs.ext4 /dev/sda2 for /root
  6. mount /dev/sda2 /mnt
  7. mkdir /mnt/boot
  8. mount /dev/sda1 /mnt/boot
  9. Do the other parts until it gets to the "install boot partition part"
  10. pacman -S efibootmgr grub
  11. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB
  12. vi (or nano probably) into /etc/defaults/grub to modify your grub setup to what you might need
  13. grub-mkconfig -o /boot/grub/grub.cfg

and that should do it. It does for me.

1 points

In my limited experience as a more advanced beginner in game development, I feel like Godot is oddly easier to use than other similar offerings. I don't know if it's the nodes or that I just haven't really gotten that far in building a game, but I've gotten about as far in Godot as I have in Unity and it (Godot) really holds its own. I think the only thing needed is a really good set of official video tutorials (that you can find on the site) and to fill out every bit of the documentation. I find myself wandering what a function does only for it to not have an entry.

I'd say give it a go. Look at some of the written tutorials on the site and the videos from https://www.youtube.com/user/gamefromscratch

If you want to learn general programming, I hear "Learn Python the Hard Way" is a great starting book. I learned Python from "Invent Your Own Computer Game with Python"

1 points

Thanks. Changing the if statements worked.

if Input.is_action_pressed("move_left"):
	get_node("Player Mesh").set_rotation_deg(-ship_rotation)
	set_linear_damp(1)
	apply_impulse(pos, turn * turn_speed * delta)
elif Input.is_action_pressed("move_right"):
	set_linear_damp(1)
	get_node("Player Mesh").set_rotation_deg(ship_rotation)
	apply_impulse(pos, -turn * turn_speed * delta)
else:
	set_linear_damp(-1)
	get_node("Player Mesh").set_rotation_deg(Vector3(0,0,0))

I was never good at understanding when to use multiple if statements and when to use else if.

2 points

I got the code to work:

    #incase anyone's wonder how I got the mouse positions
    var mouse_pos = get_viewport().get_mouse_pos()

cam.set_rotation_deg(Vector3(clamp(rad2deg(-mouse_pos.y) / 100,-80,80), 0, 0))

set_rotation_deg(Vector3(0, rad2deg(-mouse_pos.x) / 100, 0))

It's okay but not perfect. It'll have to do for now. No idea if I'll run into problems later on with raycasting. I think now the way I move forward (relative to the direction the camera is pointing) is already causing the player to slow down when looking down or up because it's basically pushing into the ground I think as opposed to moving forward.

Edit: Turns out it doesn't work. If you move the mouse to the edge of monitor, it stops the camera from moving. So I'll be looking into using an event function and see if I can't come up with something...

Thanks for your help. If you have any more suggestions or better code, please post it!

1 points

I'll try that, thanks!

Edit: So it works but with some caveats.

The code is:

cam.set_rotation_deg(Vector3(rad2deg(-mouse_pos.y) / 100, 0, 0))

set_rotation_deg(Vector3(0, rad2deg(-mouse_pos.x) / 100, 0))

I can look up and down fine and it feels okay, but the problem seems to be that once you move the mouse, it instantly makes the camera turn upside down pointed behind where the play was looking. Maybe if I find a way to constrain the degrees I can fix it.

1 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.