I was actually planning on adding the new weighting by using the 4th option you recommended. Since I already made the basics of it when I was experimenting on the moreRealism mod.
Just out of curiosity what ideas do you have for Genre’s? Cause I personally thought they were all pretty well defined >_> I made a topic suggesting adding in a new section called themes. This way some topics can go to themes like medieval fantasy, military. then you make topics like beat’em up and first person shooter. I made a thread with my idea.
here it is if you want to read it. I was thinking of modding it myself but it would take forever since I never used javascript before. With you being the legend, if you don’t think it is possible or too time consuming for you then what chance do I have?
Wow didn’t think of platformer as a genre…gues I just lumped it up with casual >_> So how are you gonna balance it out? I take it is gonna be more design heavy. Hmmm what could be another tech genre? Is platform gonna be the only Genre you add?
Hey @PatrickKlug, I don’t know if I’m doing something wrong but I found something really weird:
While adding a new genreWeighting I noticed that .splice is not working for the platforms. But here’s the weird thing: using .splice is working for everything else. For topics and the stage missions.
When you say that splice isn’t working for genreWeightings do you mean the genreWeightings within a Platforms object?
If so how are you attempting to splice them?
Another thing to note is that it might be better to just push a new element onto the arrarys rather than splice them. Considering you are going to be adding a genre, so it would be safer regarding your code and how much you would have to change if you kept the order of the genres the same (Even if you do not display them in the same order in the UI)
Yes that’s the genreWeightings I mean. But I try to add it in the same way you do. Except that I use it in a for loop (so it will go through all the platforms).
This is the piece of code:
for (var p = 0; p < Platforms.allPlatforms.length; p++) {
Platforms.allPlatforms[p].genreWeightings.push(1);
};
for (var p = 0; p < Platforms.allPlatforms.length; p++) {
Platforms.allPlatforms[p].genreWeightings.push(1);
console.log(Platforms.allPlatforms[p].genreWeightings);
};