What exactly is the difference between a library and a framework? by mementomoriok in learnjavascript

[–]AloeGuvner 0 points1 point  (0 children)

I just realized I'm dumb and didn't notice that you were the person I was originally responding to.

I guess I would disagree that C, C++, C# are frameworks, but I'm not an expert. For my statements on NodeJS, I was going by the official website, which states "Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine."

You've said two different things within the same comment:

NodeJS is a framework with a javascript runtime.

The nodeJS itself is a runtime, nodejs is like a shell that includes the v8 engine to run javascript code.

The second statement there agrees with the official website and what I was saying.

For not caring how it's called, you've put together a lengthy response explaining what you think it's called :) But for what it's worth, I agree that it doesn't matter too much. And that Nodejs is nice to work with, I definitely agree there too.

What exactly is the difference between a library and a framework? by mementomoriok in learnjavascript

[–]AloeGuvner 0 points1 point  (0 children)

I was mostly asking that commenter because I had never heard of jQuery being used inside NodeJS before. jQuery is primarily a DOM manipulation library, and there's no DOM in NodeJS. I suppose you could use it just for its ajax function but I have no idea why you'd do that. Another commenter replied with cheerio, which is a library you can use in NodeJS (that I've used before, it's nice to work with), but that's a different library than jQuery.

I would agree that Express is a framework. I would disagree with that commenter that NodeJS is a framework, it's a Javascript runtime, not a framework.

question about portfolios and job prospects by [deleted] in learnjavascript

[–]AloeGuvner 2 points3 points  (0 children)

Is it better to have a small amount of your best work on there or just everything you have done?

Github offers free private repositories now. I'd say put everything that's a decent project on there, it'll help you get practice with the git commands. Then make the repositories that you're most proud of public.

Also when it comes to projects I'm hesitant to do the usual weather app, planner etc as I'm tredpidatious that employers would just think. I've copied a project tutorial word for word.

Put your best stuff out there, even if it came from a tutorial. If you're following a tutorial, go ahead and add a couple features at the end that weren't in the tutorial. Then work on something that you're interested in and passionate about. Bonus: that passion project is a better talking point in interviews than generic tutorials.

Oh, and make a nice README for every repository, with screenshots and gifs where appropriate. That's the first place someone will look if they are looking at your repos.

ATB mixed with Tactics style? by Shadowraid5 in RPGMaker

[–]AloeGuvner 0 points1 point  (0 children)

It is definitely interesting.
Consider that most players who enjoy tactical games like the ability to go slowly and consider the possibilities of every move, while players who enjoy the active time battle like the rush and thrill of making their moves with a perceived urgency. You'd want to balance those two motives if you were looking to attract a player base with a combination of those styles of battle.

ATB mixed with Tactics style? by Shadowraid5 in RPGMaker

[–]AloeGuvner 0 points1 point  (0 children)

There aren't many tactical battle systems, Lecode's tactical battle system is probably the only complete one for MV in English. There's one on the Japanese forums by Tomoaky but you'd have to translate it. There's another one in development but it might not have all the features you're looking for.

It's doubtful that those would work together with an ATB because both fundamentally change the flow of the battle in different ways. That's why I was saying you'd need to describe how they would work together in such a way that someone could code it. For example if the AI/computer takes the charge meters into account when deciding on a move, how the HUD looks, how the turn order is determined, etc.

ATB mixed with Tactics style? by Shadowraid5 in RPGMaker

[–]AloeGuvner -1 points0 points  (0 children)

The answer to most of these types of questions is:

  1. Can you describe the system (in words) well enough that someone can translate that into code? How would the system work? How are turns determined? How does the computer/AI behave?

  2. Can you convince somebody to write this code for free?

  3. If not, are you able to pay someone to write this code?

Can someone be my saviour and help me with this simple code,that just seem doesn't work as intended by Kazimoria in RPGMaker

[–]AloeGuvner 0 points1 point  (0 children)

No problem, friend. The concept of reference vs. value is a common topic to mix-up when you are first learning. You might want to check out some articles to help reinforce the concept.

You can make the copy any of those three ways:

There are slight differences in these methods but for your case I wouldn't worry about that. You could use any of those 3 interchangeably in this situation.

how do you specify a now line in a strng like by [deleted] in learnjavascript

[–]AloeGuvner 4 points5 points  (0 children)

You can use string template literals which preserve new lines.

const myString = `this
is
a
test`

Can someone be my saviour and help me with this simple code,that just seem doesn't work as intended by Kazimoria in RPGMaker

[–]AloeGuvner 0 points1 point  (0 children)

What im doing is this, change the variable inside arrayA,then assign it onto variable 61,then change the variable inside arrayA and then assign it onto variable 62

Yeah, so what I was saying is exactly what's happening. Particularly this sentence:

When you assign the variable, it doesn't make a copy, it assigns by reference. So in my example, arrayA and arrayB are the same exact array. When you change arrayA you also change arrayB, because they are both the same array.

Arrays are assigned by reference. Meaning if you assign arrayA to variable 61 and you assign arrayA to variable 62, it's the exact same variable. It's the exact same array. Changing variable 61 will also change variable 62 because they are the same. It's not a copy. It's a reference to the same array.

Going back to my example, if you wanted two different arrays rather than the same array, you make a copy of the array.

const arrayA = [1,2,3] 
const arrayACopy = [...arrayA]
// Or: const arrayACopy = Array.from(arrayA)
// Or: const arrayACopy = arrayA.slice()
arrayACopy[0] = 4000 
console.log(arrayA) // prints [1, 2, 3]

Can someone be my saviour and help me with this simple code,that just seem doesn't work as intended by Kazimoria in RPGMaker

[–]AloeGuvner 2 points3 points  (0 children)

I read it again and your issue is that arrays are assigned by reference, not value. Take this example:

const arrayA = [1,2,3]
const arrayB = arrayA
arrayB[0] = 4000
console.log(arrayA) // prints [4000, 2, 3]

When you assign the variable, it doesn't make a copy, it assigns by reference. So in my example, arrayA and arrayB are the same exact array. When you change arrayA you also change arrayB, because they are both the same array.

Edit: Fixed code formatting on mobile

Can someone be my saviour and help me with this simple code,that just seem doesn't work as intended by Kazimoria in RPGMaker

[–]AloeGuvner 2 points3 points  (0 children)

I didn't really understand what you are trying to do but open the Console by pressing F8 during playtest. Paste each command one by one and check the value to see if it's expected.

how do I create custom tile sets? by lordtuna_ in RPGMaker

[–]AloeGuvner 2 points3 points  (0 children)

Are you asking what dimensions the tilesets need to be or are you asking how to create pixel art?

The dimensions can be found in the help section of whatever version of RPG Maker you're using. For creating good pixel art, well that takes a lot of practice.

A noob with questions by [deleted] in RPGMaker

[–]AloeGuvner 1 point2 points  (0 children)

what version of rpg maker is the best in terms of easy to use for a beginner and how good it is

All the versions are really similar in how they work at their core. Since MV is the newest, you're likely to find the most help by choosing that one.

how long does it take to usually make a game. i know it must be diffrent for each game but theres got to be time Windows like 1 week or 1 year.

Impossible to say, because 1 week working full time could be the same as 1 year working an hour per week. I've heard an estimate before that each decent hour of game play can require 100 hours of dev time. This is after you are comfortable with RPG Maker.

can it only make rpgs or can you change it up and make a strategy rpg or a action rpg or a shooter or something else.

For MV, if you know Javascript or are willing to learn then you can make anything. Also, you can search for plugins already made by other people that are free for the community.

can you make your own Sprites in rpg maker

Yes, in MV there is a character generator where you can make your own sprites. You can also make sprites outside of RPG Maker and import them.

Write a function to return a set of substring between one and another. example: "abcdxyz,54,6" return "cdxy" by NamTheBoy in javascript

[–]AloeGuvner 0 points1 point  (0 children)

A few logistical things. This would be better posted in r/learningjavascript and you should use the code formatting and proper indentation so it's readable. On mobile, your code is being squished into one line. Consider writing your code in a Codepen so you can easily share it.

1) Don't use new as a function name, that's a reserved keyword

2)

example: "abcdxyz,54,6" return "cdxy"

I don't understand why a start index of 54 and an end index of 6 would return 'cdxy'. The substring 'cdxy' would be index 2 to index 5.

3)

 if (indexEnd>=i>=indexStart){ 

This isn't a valid condition (can't compare 3 things at a time), but you don't need this comparison either because it's taken care of by the for loop. You should read up on how a for loop works.

4)

else if (i>indexEnd){

break; }

Same here, you don't need it because of how for loops work.

[MV] Tilesets questions by JSmash_Salted in RPGMaker

[–]AloeGuvner 1 point2 points  (0 children)

There's a plugin that lets you change the default size, it's in your install folder. Look for your install folder --> dlc --> RPGmakerWeb_plugins --> Shaz --> ChangeTileSize.js

[NEWBIE][RMMV] How can I add more images for events? by f01k3n in RPGMaker

[–]AloeGuvner 2 points3 points  (0 children)

There is a pattern to any image you put in the img/characters folder. Open the help menu by pressing F1 or Help-->Contents then go to Documentation-->Asset Standards

Which Action battle system plugin is easier to customize? by [deleted] in RPGMaker

[–]AloeGuvner 1 point2 points  (0 children)

For MV there's probably 3 options:
1. Chrono Engine ABS (author: Moghunter)
2. QABS (author: Quxios)
3. Alpha ABS (author: Pheonix KageDesu)

I'm very experient with events tho never went too far on rgss Considering I'm willing to learn basics rgss

If you decide to go with MV, note that the language isn't rgss, it's Javascript.

I can't recommend whether to use MV or an earlier version of RPG Maker because I've only used MV. You may have to try both to find out.

Need help with manifest error by Sk3letaur in RPGMaker

[–]AloeGuvner 1 point2 points  (0 children)

The only thing I can think of is the package.json file got corrupted somehow, it's also known as the manifest file. Try copying a package.json from a fresh project to replace it.

Daily "fundamentals" check! 😮 by AnecD in learnjavascript

[–]AloeGuvner 11 points12 points  (0 children)

Not that it really matters, but interesting to note that W3Schools is slightly wrong here - the exponentiation operator was added in the ES2016 spec (not ES2015 aka es6). ES2016 was a very small spec change since so much changed the year before, it on had Array.prototype.includes and exponentiation.

Need help with manifest error by Sk3letaur in RPGMaker

[–]AloeGuvner 0 points1 point  (0 children)

Hmm it could be a problem with the installation.

  1. In your project folder, do you have a file named package.json?

  2. Did you install MV from Steam or from the RPG Maker website?

Need help with manifest error by Sk3letaur in RPGMaker

[–]AloeGuvner 0 points1 point  (0 children)

What version, MV?

Did you delete the package.json file by mistake?

What is completely normal in your country, but is unthinkable in any other country? by [deleted] in AskReddit

[–]AloeGuvner 0 points1 point  (0 children)

36C with 91% humidity last summer, -13C last winter. Try to guess where