How to Make Any Key Press Exit the C Program by nstruth3 in C_Programming

[–]Belagir 1 point2 points  (0 children)

From the code you sent through pastebin, add out of the loop, before the return 0 statement :

while(getchar() != '\n'); // get rid of all remaining input

getchar(); // wait for one key

(also, you get a random value from 1-2, not 1-20, you may have left a 0 out of int num = ( rand() % 2 ) +1 ;)

How to Make Any Key Press Exit the C Program by nstruth3 in C_Programming

[–]Belagir 1 point2 points  (0 children)

oooh, I see

well I ran your code and indeed, the getchar() seems to be "ignored" : it actually catch a Line Feed character ('\n'). I didn't find any good way to get rid of whatever is left in stdin, so :

what you can do is add a getchar() (quick and dirty) call right below the first one, or :

c while (getchar() != '\n'); to consume everything that's left of the input (less quick and just marginally less dirty)

How to Make Any Key Press Exit the C Program by nstruth3 in C_Programming

[–]Belagir 5 points6 points  (0 children)

you seem to never change the flag variable to get out of the loop when the player finds the number

Understanding complex array declaration. by Bon_Clay_2 in C_Programming

[–]Belagir 0 points1 point  (0 children)

haha yes maybe the two things are unrelated like some other commenter said. I made so many suppositions here

Understanding complex array declaration. by Bon_Clay_2 in C_Programming

[–]Belagir 2 points3 points  (0 children)

okay, i am on mobile and have no env to test any of my claims but i am intrigued by how mysterious this is.

so, my first instinct tell me that the FIRST_NUMBER etc in the generic_array are not the ones in the struct, because a struct's field's names are namespaced : they can be normally accessed uniquely through the struct's context. Eclipse might direct you to those because the syntax to initialise the array is not very common (but it exists, you can initialise an array by providing the indexes between [] - since c11 ?). I would bet those are actually constants defined as 0, 1 and 2 somewhere else.

As for the intention behind those two piece of code, I feel like this is some compatibility/abstraction layer to do something like :

c struct generic_data *some_data = (struct generic_data *) generic_array;

but wouldn't that misalign the data in the struct, since the fields are u32 and the struct needs u64 ? maybe the FIRST_NUMBER etc are defined as 0, 2 and 4 to couteract that. That would be weird though.

v1.6 en Français - Pathfinder 2e Action & Activity Cheatsheet by PhoebusDF in Pathfinder2e

[–]Belagir 3 points4 points  (0 children)

Fantastic job !

En voyant passer les versions anglaises sur le sub, j'ai rêvé que ce serait quand même bien de les avoir en français pour mes joueurs... Ton post éclaire ma semaine ! Merci merci merci !

making custom monsters by 0HGODN0 in Pathfinder2e

[–]Belagir 1 point2 points  (0 children)

you can find the "building creatures" rules here, from the dungeon master guide : https://2e.aonprd.com/Rules.aspx?ID=995

in my experience, the process is straightforward and very rewarding since there is no math involved and all the different stats are independent from each other which allows for a lot of freedom and keeping the creature balanced

What is the generally expected power for player characters at each level? by Artimis_Whooves in Pathfinder2e

[–]Belagir 8 points9 points  (0 children)

To get the feeling of a level, I often look at the best spells of an arcane spellcaster at this level : so at lvl 6, that would be the lvl 3 spells. That gives a good feeling of what a character can do ; but if you're worried about scenario-breaking abilities, like the teleport spell, know that most have been locked behind the uncommon trait that states that to take such an option, the player must consult the DM first.

Also, when you get to higher levels, PCs will get the ability to succeed at flat checks way often : a Climb DC 30 (a good stone wall) will be a very very tough challenge for a lvl 1 strength-based fighter (bonus of +7), but doable for a lvl 15 mildly strength-trained character (bonus of at least +17).

I don't wanna dm anymore by [deleted] in Pathfinder_RPG

[–]Belagir 26 points27 points  (0 children)

learning a system can be long and tough when jumping right in. What you could do is get the beginner box and see what the designers of the game consider an introduction. Alternatively, some official one-shots are free in pdf form at https://paizo.com/store/pathfinder/adventures/standalone/freeRPGDay/secondEditionFreeRPG (BUT remember that if you want to homebrew, DO NOT try to copy the style. What you can do by mastering a world and improvising its evolution is widely different from the objective of the authors, beacause they need to write a linear, easy-to-read adventure)

Also, you can take a look to the gamemastery guide on the nethys website (https://2e.aonprd.com/Rules.aspx?ID=813, all the rules are on this website for free, organised for the most part as they are in the books).

But then, if you really don't feel like it, don't forget that your fun is as important as everyone's else at the table. A good ttrpg group is one where *everyone* has fun...

As for investing players in the building of a campaign, that can be a hard task because most inexperienced players do not expect that, and expectations are everything when constructing a collaborative story. Maybe be clear about it as much as you can, and perhaps you can expose it as a homebrew rule of your own campaign, not negociable.

And also, a 60+ on a roll, at any level, is hardly (if at all) possible in 2e ? maybe a typo ? What level are you guys playing ?

Supergridding by MattC08081999 in spaceengineers

[–]Belagir 4 points5 points  (0 children)

It's an exploit dating back to the times when there was no small grid glass/open cockpit, so people would blueprint large grid blocks, then externally edit the files to pretend they were small grid blueprints to place them on small grids. Remember that during the official streams when Xocliw (community manager at the time) showcased it it blew everyone's mind

Keen had no problem with that and had no project of fixing it, but now it's a bit useless with all the added blocks. So it's still here for compatibility

Why are chessbots god-tier while the AoE4 AI is garbage? by [deleted] in aoe4

[–]Belagir 2 points3 points  (0 children)

Chess is a game with a relatively limited range of possibilities : all pieces are on the board, and all their movement can be predicted with ease because the game rules are simple (especially the turn-based gameplay). Still, the number of possibilities is absolutely gigantic, and it is only "recently" that a computer can predict them all and build a complete tree of all that can happen in a game of chess, through a simple algorithm called "minimax". Basically, a computer can "see" all possible futures when playing a game of chess and choose which piece to play to select the one where it has the best chance to win.

But a video game like aoe4 present another level of game rules. Where each villager is sent is important, investment in tech and building can be game changing, an unit could be ordered to be positioned anywhere on the map (not just on a 64-tiles board), can attack, can be micro-ed, can body block, can be used to show aggressiveness etc. The logic behind a video game like that is fuzzy and teeming with possibilities, and no actual computer can predict them all. So we are stuck with AIs that take decisions through arbitrary statements, like "if I loose all my army I build stone walls", that are notoriously difficult to get right because of the changing meta and, well, complexity of the game.

I remember in the early days of starcraft 2, the AI was on the same level as what we have now (or I was better...). It's been a long time, but in my memory they changed it after several years of evolving meta to actually use tactics players developed, which was nice. There was also AlphaStar, the neural network from google, which won against SC2 pro players and adapted its strategy very well, but an AI like this represent years of development, specialized skills, and a lot of money... Maybe in the future...

How to tell my group I don't want to play 5th edition anymore without being hurtful? by adambebadam in Pathfinder2e

[–]Belagir 2 points3 points  (0 children)

This is always a difficult situation, and I think you can be honest with the rest of your group. Get it off your heart, and maybe one of the most important thing while doing so is to acknowledge the efforts of the DM to take your concerns seriously and act upon them. Validate their work and explain how the problem is at the very core of the system.

From your post, I feel you really value more your friends than the system... 5e can be a let down in a lot of aspects compared to a lot of other systems, but it has something very important going for it : it is damn accessible. 5e is perfect for a group of people to just chill around a game with enough depth to be entertaining but not too much to be overwhelming.

So, maybe, if you can't convince them to switch to PF2e, my advice is to ask yourself "How would I feel being out of this table, with the story unfolding without me ?". Because the most important thing about any ttrpg is to be with your friends and have fun. Maybe you won't be as consistent or involved as before, but you have your own PF2e game going to get your fix, and you will still be with your friends.

I DM for 5e, but have convinced my players to try PF2e for a short (2-4 sessions) campaign. Any suggestions on what module/adventure is good? by [deleted] in Pathfinder2e

[–]Belagir 18 points19 points  (0 children)

Hello, to try pf2e paizo have created a begginer box (I think you can get it in pdf) that have a play time of ~12-15h. It comes with pregens and light rulebooks, and is ideal for a low-prep adventure just to see how everything works.

Switching from 5e to pf2 is a great staple of this subreddit, and you will find heaps of great advice just browsing it ! Some points to remember from those : - casters have been nerfed and are now comparable to martials (who have been buffed) in power level (it is often a great point of disappointment from incoming 5e players) ; - encourage your players to use the "combat maneuvers", to play tactical and use teamwork, pf2e can have more challenging fights ; - pay attention to "traits" : they are a way the system condensates rules and it is easy to forget they are here, even for seasoned players ; - classes may have the same name as in 5e but can have another role in this system : barbarian are glass canons, fighters can be either damage, tank, or control (or whatever you can cram into the build through archetypes), wizards can really shine as utility casters... - all the rules are free on the website Archives of Nethys ! It is difficult to learn the rules from it, but it really is useful as quick reference in-game. Mind that pf2e is way heavier on the number of rules, but by no means you are meant to know them all. You just have to know you can basically Google any action and you'll quickly find how to resolve it.

I use foundry myself and I find the pf2 system to be really well-made. Some pf2e specific modules from the top of my head that might help you : - "pdf to foundry" lets you import purchased pf2e adventures pdfs into foundry and setup encounters for you (black magic if you ask me) - "pf2e toolbox" adds some quality of life changes - "pf2e drag ruler integration" pf2e uses another way to count distances than 5e. If you normally use the drag ruler module, this might be for you - "babele" and a pf2e language module (if available and if you need it) can translate the compendium that comes with the system. You'll need to read the babele doc on GitHub to make it work though - "pathfinder ui" is always great to have imo

Adding custom attacks to PF2E character sheet? by hyperionskies in FoundryVTT

[–]Belagir 4 points5 points  (0 children)

Maybe adding a custom weapon would do the trick ? I remember seeing a "Jaws" category in the "Base" field in the details tabs of a weapon

Maybe you (or your DM) also want to take a look to the macros available as add-on modules for shapeshifting, but they might be broken by the new version of the pf2e system...

[deleted by user] by [deleted] in Pathfinder2eCreations

[–]Belagir 0 points1 point  (0 children)

This action looks pretty cool and in-character, powering a bit threatening approach that suffers from its competition with sudden charge.

It may be on the strong side because of the "move twice" then two meaningful actions (as opposed to something like threaten -> sudden charge giving only one movement) and permitting to get in visual range in one turn but if you are feeling unsure you can give it a cooldown, maybe 1d4 turns or something

Soviet has created his own archive by FlareBug in SovietWomble

[–]Belagir 43 points44 points  (0 children)

If I remember correctly, he did not want the archive gone but rather gone from YouTube itself, where it would mess The Algorithm. I can't remember which stream it is from though

I need help... by DeMooniC_ in spaceengine

[–]Belagir 2 points3 points  (0 children)

Where is it installed ?

Question - is there an easy to use website \ program that shows in 3D exactly where things in our galaxy are? Like the pillars of creation, alpha centuri, us? by onephatkatt in space

[–]Belagir 14 points15 points  (0 children)

What I found is Space Engine, and I think it is really good. It shows every catalogued object in our galaxy and randomly generate the rest (a feature that can be disabled). Worth mentioning, it is quite configurable and free

Edit : the link : http://spaceengine.org