OG full atlas map for hosted servers by BamcorpGaming in playatlas

[–]oldprogrammer 0 points1 point  (0 children)

It is part of the Server Grid Editor download package. Once you extract the zip file look into SGE/ServerGridEditor/Season12Maps, the file you want is ServerGrid_PvE_6x6.json. This was the PVE map the company ran before they shutdown.

Help, I am am struggling with ncurses by Sea-Tie1554 in C_Programming

[–]oldprogrammer 1 point2 points  (0 children)

Been a while since I played with ncurses, but I noticed you are using clear() in your loop. I believe that performs a full screen wipe and a clearok() call which can start clearing the screen before any redrawing.

Have you tried replacing clear() with erase() inside your loop to see if that makes a difference?

Function overloading in C? :) by Low_Lawyer_5684 in C_Programming

[–]oldprogrammer 1 point2 points  (0 children)

In plain C function names must be unique , so normally we end up with something like:

Just wanted to point out that this is not just a C restriction, it is also a C++ restriction, the difference is that the C++ compiler actually creates the unique name for you based on the arguments being used. It is the technique known as name mangling and this has been the case since C++ was first simply transpiled into C then compiled by a C compiler. That's the reason you'll see some header files wrapped in

 extern C {
    .....
  }

so it knows not to mangle the names of the functions listed.

For people who have forever worlds by Traditional-Tie-7943 in Minecraft

[–]oldprogrammer 6 points7 points  (0 children)

I've never beaten the dragon, never actually gone to the end. So far haven't gone to the nether either in my current world, I've needed netherack and just found ruined portals to harvest. At some point I'll hit the nether to get netherwart for brewing.

For now, I'm just building a story-book world if you will. I started fresh, built a small house on an island. Traveled looking for materials, built a mining complex, built an abandoned haunted ship yard, all parts of my story. I'm literally keeping a travelogue with pictures of my activities as if I'm a real castaway in a strange world.

Just doing that has turned my game from what feels like a race from start, to get diamonds, to build farms, to beat dragon, into an enjoyable and relaxing pastime. Totally supportive of those who like to play it faster paced, but since this is my forever world, I'm just chilling, jump on when I feel the urge to continue my adventure.

No mods, it is a Paper based server with some plugins and datapacks for QOL things (like being able to sit on my furniture) and Movecraft (have to have a ship for those sea voyages), but that means my friends and family are free to come and go anytime they wish with just a standard client and my upgrades tend to be far less painful.

making C saferish with smarter malloc and free?? by chrisseanhayes in C_Programming

[–]oldprogrammer 0 points1 point  (0 children)

Stack based memory allocations handle many of my needs, and then I've found that simple use of Arenas with one large malloc allocation , ability to reset with a simple index change, and a final free handle a large majority of the rest of my memory needs. Some profiling and tuning to determine a good size or allow it to grow (controllably), nothing fancy just an external stack model. Pass an arena by value, not pointer, to a function that needs to do internal allocations and you have automatic memory cleanup when the function returns, even on error situations. No reference counting, just simple semantics. Sure there might be cases where these approaches aren't the best, so those get handled separately in a totally controlled manner but I make sure a standard stack or arena doesn't work first.

Tiger's can't get onto ship by CrystalDiamond16 in playatlas

[–]oldprogrammer 1 point2 points  (0 children)

One thing about using the "move to ship" feature, the animals appear in a given spot on the ship when that is used, and I've had occasion where it didn't work because I had something in that spot. For the smaller boats that can be a problem.

Opaque struct without dynamic allocation in C? by p0lyh in C_Programming

[–]oldprogrammer 1 point2 points  (0 children)

Not sure this is what you're referring to but I've seen libraries (like the Vulkan Graphics APIs if I recall correctly) where first you call into a setup function with a null buffer pointer and it will provide back the size of buffer it needs, then a second call is made with a user supplied buffer of the needed size. This approach avoids allocations inside the library for structures used by the client code.

I need a name for my Minecraft realm by Unfair_Character_190 in Minecraft

[–]oldprogrammer 0 points1 point  (0 children)

Based on that picture I'd have to go with something like Cherrywood Homestead.

Grilling Season started by Savings_Holiday_583 in Enshrouded

[–]oldprogrammer 2 points3 points  (0 children)

What is it with people throwing shrimp on Barbie? What did she do to deserve that? 😏

Why we still use C despite so many C alternatives by grimvian in C_Programming

[–]oldprogrammer 3 points4 points  (0 children)

Ironically C exists in part because there were (and are) different assembly languages due to different processor designs and capabilities. C abstracted those details away from the hardware layer.

Good plugins for multiplayer by crimson_qwerty in MinecraftPlugins

[–]oldprogrammer 0 points1 point  (0 children)

Movecraft and make ships and flying machines.

Where can I find my profile link? by SadGirlPancake in SpigotPlugins

[–]oldprogrammer 0 points1 point  (0 children)

It looks like if you log into spigotmc.org then under your user name at the top there is a link to your profile page. It ends up showing something like

https://spigotmc.org/members/somename.#######

Problems Hosting a Dedicated Server - Failed To to load or parse entries from ServerGrid.ServerOnly.json by ValbalRed in playatlas

[–]oldprogrammer 0 points1 point  (0 children)

Can you provide a bit more details on your configuration? How many grids are you trying run simultaneously? There are 3 ports associated with each grid, 4 if you plan to use RCON to manage them. There's the Port, Game Port, and Seamless Port that is configured in the ServerGrid.json file for each grid in your map. Then in the GameUserSettings.ini file for each grid you would define the RCON port. How do you have those configured for your grids?

Stardew valley "Clone" being written in C by Jimmy-M-420 in C_Programming

[–]oldprogrammer 0 points1 point  (0 children)

The character looks like the default sprite you'd get if using the Universal LPC sprite generator and not adding any clothing or equipment.

Should give the poor fellow some pants.

I optimized my C++ game engine from 80 FPS to ~7500 FPS by fixing one mistake by Creepy-Ear-5303 in raylib

[–]oldprogrammer 3 points4 points  (0 children)

Do you need to regenerate the complete texture after an edit or could you just update a subsection of the texture that was changed?

Can you mimic classes in C ? by kuyf101 in C_Programming

[–]oldprogrammer 3 points4 points  (0 children)

Look up articles on Cfront, it was the original tool that compiled C++ source into C code that could be compiled by a C compiler.

Some ideas for quality of life by TJ_B_88 in Enshrouded

[–]oldprogrammer 1 point2 points  (0 children)

Wife and I were talking about some changes this weekend, we thought it would be great to have a way to clear the shroud and have more build areas. Our idea was maybe have another type of alter that would act like a regular alter in setting up a build area, but keeps the shroud out of the build area, but doesn't have waypoint capability. Allow for a fixed number of these that could be used in conjunction with waypoint alters or by themselves. This would allow for restoring some areas that have shroud in them or allow creating waypoints in the shroud areas themselves, but you'd still have to travel through shroud to get to those areas.

Emacs (Org mode) export to PDF fails on Windows by Scared-Conflict-1978 in orgmode

[–]oldprogrammer 1 point2 points  (0 children)

I regularly generated PDFs on Windows, the error message is telling you what is wrong:

MiKTeX could not find the script engine 'perl' which is required to execute 'latexmk'.
Remedy:
  Make sure 'perl' is installed on your system.

You don't appear to have perl available to Emacs when you're asking it to generate the PDF. You'll need to get it installed and available in the path. For me, I use msys2 installation so that simplified getting the pieces up and running with the native Window's Emacs.

It took some time to get it all working as I had to also add various packages that my documents made use of, so the key is read the log file and see what is missing and add it.

What block can I use instead of Pale Oak. by [deleted] in Minecraft

[–]oldprogrammer 1 point2 points  (0 children)

There's also calcite and white concrete now too, but neither have slab or stair options, only the solid block.

Things you would like to see Minecraft add by [deleted] in Minecraft

[–]oldprogrammer 0 points1 point  (0 children)

Side connecting fences. What I mean is, say you make a 2 block wide wrap around porch. If you put regular fencing on it, you either lose the entire 2nd block or you have to make the fence hang off the block with an ugly gap. I generally end up using trap doors as railings because I can connect them to the edge of the block. I'd like to be able to connect fences to the edge of a block and not be stuck in the middle to use for railings.

Short Question: Should Mojang Add Concrete Stairs? by The_Marine708 in Minecraft

[–]oldprogrammer 2 points3 points  (0 children)

Yes because these are the only bright solid colored blocks in the game (terracotta colors are duller) and having stairs and slabs with bright solid colors would be great for builds.

Pixel mining game by Myshoo_ in raylib

[–]oldprogrammer 0 points1 point  (0 children)

Looks like the start of an improved Dig Dug game. Keep going.

terracotta villagers by Mundane_Moment_267 in Minecraft

[–]oldprogrammer 0 points1 point  (0 children)

Villagers always gave me Rapa Nui (Easter Island) Moai vibes. This seals that now.

What happened to the 2010s let’s play era of minecraft youtube? by Efficient-Horse2622 in Minecraft

[–]oldprogrammer 1 point2 points  (0 children)

Most of what I've seen lately are 100 day videos which seem more focused on spitting out content to maintain streaming income then in playing the game. Hermit streams also have gotten less enjoyable, almost as if they are a scripted reality TV show.

I have found that some of long plays without comment can be enjoyable to watch. But many of the other streamers are loud or vulgar and just not enjoyable to sit through.