Could you post a screencap of one of these "too big" common events? Are you trying to put too much Javascript code in the script box?
How do you turn on a Switch inside a damage formula on RPG Maker MV?
RPG Maker MV SupportI tried to post my Mining Skill Common Event that seemed to be causing my editor a lot of crashes last week. But I kept getting this error: Oops! We ran into some problems. Please try again later. More error details may be in the browser console. And I don't remember trying to put too much in a script box.
Any ideas oh how I could post it without getting that error? I tried using the Code thing at the top.
The OP has talked about avoiding use of code, so that's probably not a thing...besides, it's not like the editor is executing any of that code. At that point, it's just a text box like Show Text or a note field.
It could be a memory issue. It could conceivably be a graphics issue, if it's encountering some kind of glitch when trying to draw the display of the event editor over a certain portion of your screen. Difficult to guess.
I have no clue what that error could mean, unless it was a temporary glitch in the forum.
Select All of your event code, right-click and copy as text, paste here in the CODE tag. I've never had an issue. If you do, you can try clearing your browser's cache or posting it from a different browser.
Here goes again....
Nope. Same error. How do you clear your browser cache? I'll try that and see if it helps.
Well it depends on your browser. You should be able to easily Google it.
Ok. I think I figured it out. I went to clear browsing data and clicked the box that said cached images and files. I think that's what you mean.
Unfortunately I'm still getting that error though when I hit Post Reply.
Do you think it might have something to do with the option I'm picking on the Code menu? I'm just leaving it on General Code at the top.
Just screenshot the event, like AquaEcho initially requested.
I don't visit forums often or talk routinely to others about this stuff, so I'm not familiar with what all the words mean. So when he told me to post a "screencap" of the common event I assumed it meant posting the code.
I could take a screen shot of the common event. But I wouldn't know how to fit the entire code into a the screen shot. So I'm not sure how useful that would be.
we need a single screenshot of the event page for those parts of the event that are not the code.
for the code itself, copy it as text like described a few posts above.
And, as I already said make it a new topic because that has nothiung to do with this topics title
I think there was some confusion earlier about what I meant when I said the game was crashing. I was referring to the editor. The crash occurs when I attempt to load or edit the larger common events from inside the database on the editor itself. So I wouldn't know what event page to screen shot. The Common Events work fine once I start the actual game.
I've tried numerous times to copy the code as text and post it on the forum. But I keep getting this error: Oops! We ran into some problems. Please try again later. More error details may be in the browser console when I try to post the reply.
Far as starting a new topic, I just like to try to respond to everyone who is trying to help me. The moderators are welcome to shut this thread down as solved because I figured out a work around for my switch dilemma. I would do it myself, but I don't know how.
It sounds like the length of the event pages themselves (either by character count or line count) are too long so it's bugging out the editor and the BB Code? How many "lines" of code are these event pages?
According to the Code Box: when I paste the Common Event for my Mining Skill there are 7,268 lines. Least that's what the number at the bottom left says.
Uh, what exactly is in this mining skill that makes it 7200 lines long and how did you go about writing that?
Oh man, there is no way you need so many lines for this event.
It's too bad I can't just show you. But it's mostly just a lot of conditions, which is usually what makes a lot of my common events get so big, since I have to account for every possible choice the player might select and then react to it. It also moves a lot of events around on the screen to simulate a grid you uncover to find hidden items. If you played Elder Scrolls Online, it's similar to their excavation system.
Not sure what you mean by how I went about writing it. It took me about a month I think to finish it completely if that's what you mean, which is about normal for me. But I'm pretty slow.
lol, probably not. If I ever figure out how to post them on the forum I'll make a new thread and see if anyone is nice enough to help me truncate them.
Like Andar said, you would need to make a new topic, but it isn't that hard to grab an image of your CE. You would just need to grab a lot of screens in order to show all those lines. Here's one of my CEs:
Honestly, over 7,000 lines feels ridiculous.
Oh my holy god.
I didn't think the event editor could fit that much. I've seen people talk about running out of room for their cutscenes on one event page, there's no way there'd be that much.
Yanfly's Battle Engine Core doesn't have 7,000 lines of code.
I mean, you can post it without using the code tag, stick it inside freaking spoilers so people's Web browsers don't blow up trying to look at it.
But you might want to take some time to review some eventing tutorials, especially on logical flow, then revisit that thing...there's no way whatever you need to do is so complex that it requires that much.
You should also see if there are plugins that do basically what you're trying to achieve, that's the whole point of them.
I usually only use plugins if they allow me to do something I can't figure out how to do manually. It's not really that complex. It just has a lot of conditions to account for.
Since yaw seem interested in helping me with this, I'll try to make a new thread tomorrow and post the common event in increments. Maybe I can do it that way.
Since yaw seem interested in helping me with this, I'll try to make a new thread tomorrow and post the common event in increments. Maybe I can do it that way.
In that case, you're probably missing a lot of the generally known tricks to simplify event logic.
because as said above, there is absolutely no way any form of mining event should go beyond a hundred lines.
And part of that is probably using the wrong split points in the event.
Can you make a grafic representation of your logic? There is a reason why flowcharts have been a tool in programming for decades. And with a flowchart someone can start to analyse your logic and tell you how to simplify it.
Example: the following is a flow chart of the engine damage processing.
RPG Maker VXA/MV/MZ Damage Flow
An infographic to teach people how the damage/recovery is calculated in vxace! This infographic is made by @Archeia and @rhyme. Thank you to these people for helping me figure out the EXACT flow and formulas :D Recommended that you open this image in another tab or click on it over here if...
forums.rpgmakerweb.com
we don't need every detail - if you check for example a dozen values of the same variable, then one or two of the result branches are enough.
But we need something like that to start understanding where your logic went wrong and how to better structure your mining or other events.
Don't try to paste that thing in your post. Put it in a text file and attach the file.
If anyone dares open it 🤣
If anyone dares open it 🤣
Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-turn-on-a-switch-inside-a-damage-formula-on-rpg-maker-mv.160972/