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,647
Reaction score
422
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,647
Reaction score
422
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

#WIP Metal Tactics's TBS (2015 vs 2021)
VSt9pWc.png
ZXnpNYY.png
RPG Maker News #14 | Diffused Screen Effects, Unsellable Items, Ambient Synths, Adult Woman Set
If kids are going to be taught on computers and have access to the Internet, some basic knowledge of copyright should be a part of the grade school curriculum.
I have some news that I want to share - I've been accepted to university ^-^
I received some offers just over a month ago, but I wanted to make my choice and get things in place before sharing the news.
I'm super excited, and I'm very happy with my choice of program and school.
Yesterday I went to get some new jeans for my new job... and discovered I'm a plus size. I'm planning on dieting so I can get back to where I was before 2020. I decided on a Japanese food diet because the recipes I can cook at home are both low-calorie and delicious.

Forum statistics

Threads
110,513
Messages
1,053,861
Members
143,603
Latest member
arkauss
Top