luiscesjr

Veteran
Veteran
Joined
Jun 26, 2014
Messages
117
Reaction score
11
First Language
Portuguese
Okay guys, so I've done this hundreds of times before, I tested many of my games on my phone,


but this time around, I was going to test a new project, see how it would react under touch controls, etc (Since the core of my game is almost


complete I need to have the feeeeel of how it plays on mobile).


But I cannot start the game I keep getting this error "ReferenceError require is not defined" as seen below on my screenshot.


To avoid errors initialy I included everything, I did not strip anyting off, because I wanted only to test, I didn't expect


to run into errors, I didn't want to. 


And yeah it does play on my editor on play test.

Screenshot_20161108-081955.png


[\spoiler]
 
Last edited by a moderator:

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
421
First Language
Portuguese
Primarily Uses
RMMV
We need to see the console.
But unfortunately... I don't know how to see it on the cellphone... Can't you use a program to emulate a phone first?
 
Last edited by a moderator:

luiscesjr

Veteran
Veteran
Joined
Jun 26, 2014
Messages
117
Reaction score
11
First Language
Portuguese
Thanks for your answer man! I was just about to post and edit some new things. (Obrigado haha)


The thing is, I found out the problem is with one of my plugins (Nothing shows wrong on console when testing unfortunelly).


The problematic plugin is the Character Creator Plugin (Which is awesome and dead useful to me, in my project),








It gives out that error ONLY when the game is deployed. I left a comment on  SumRndmDde's video but I guess he didn't


see it yet. This plugin of his is simply awesome.


I also searched on his site and there is a guy who had a similar problem when deploying to Windows, and his solution


was put the img sources outside the project's source (At least thats what I understood, as difficult to understand me as it sounds),


Here goes a screenshot of this comment:

Sem título.png


So I'm kinda stuck for now with the plugin...
 
Last edited by a moderator:

YoraeRasante

Veteran
Veteran
Joined
Jun 6, 2014
Messages
1,643
Reaction score
421
First Language
Portuguese
Primarily Uses
RMMV
hmm... this could be a problem for android.


You see, to make an android apk you use only the contents of the www folder, and from what I got this person puts the files in an img folder outside the www folder...


basicamente, ele criou uma pasta img fora da pasta www, pelo que eu entendi. só que pra criar um aplicativo android você normalmente usa só o que está na pasta www, então não sei como isso iria funcionar.
 

luiscesjr

Veteran
Veteran
Joined
Jun 26, 2014
Messages
117
Reaction score
11
First Language
Portuguese
Exactly, I did what he said and it didn't work, I'm not too familiar with the android folder rules for apk. 


Acho que babou haha.


I will wait for his official answer then, see if he can find a solution for this. Looking in his code he always call for the 


resources under /img/SumRndmDde/, and those are surely included inside the www.


He goes for the 


path = require('path');


And I'm not a very skilled coder to see exatly the "fix'. Not that his code is wrong or anything, but my specific fix,


the paths* all seem very clear to me. 

Code:
_.filePath = '/img/SumRndmDde/character-creator/walk/';
_.filePathDead = '/img/SumRndmDde/character-creator/dead/';
_.filePathSv = '/img/SumRndmDde/character-creator/sv/';
_.filePathFace = '/img/SumRndmDde/character-creator/face/';
 
Last edited by a moderator:

vilune

Warper
Member
Joined
May 10, 2015
Messages
1
Reaction score
0
First Language
Spanish
Primarily Uses
Good Morning, 


luiscesjr
Did you solve the error? I'm in the same situation as you.
Thank you.
 

luiscesjr

Veteran
Veteran
Joined
Jun 26, 2014
Messages
117
Reaction score
11
First Language
Portuguese
Hey vilune! No man, I did not find a fix for this, in fact I kept doing other things, since I contacted


the dev, and maybe it will take some time for him to fix, as it's a mobile only problem...
 

Latest Threads

Latest Posts

Latest Profile Posts

i'm working on finishing an old game in vx ace (the first game i tried to make in vx ace), and it's making me realize how many things i've come to take for granted in mv (like the additional BCDE tile layer and the plugin manager).
It's ma birfday! Gonna chill and work on my project, editing some icons for my compass rn. Later It's pizza and a movie, maybe Blazing Saddles...
I really hope Google stadia/Amazon luna become successful household "consoles" in the future only because I could see it being 1000x easier to get RPG Maker and other indie games on their platforms & if so I PRAY they have gate keepers to keep half baked indie games out of the mix so they don't end up like steam/itch.io with 1000s of incomplete RM projects that continue to give our community a bad stigma.
I'm new here! Used to use RPG Maker 2000 as a kid, now I make 16-bit era style RPG music and hope to contribute to a project. You can sample a couple of tracks I posted on YouTube by searching my username.

Forum statistics

Threads
109,017
Messages
1,041,258
Members
141,478
Latest member
Dorfde
Top