External links in game?

Status
Not open for further replies.

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
Can I call a website in game? Not just from title screen plugin?
 

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
Ok since it's made for the title menu, and I'm not at home on my pc can you describe how?  My friend wants to buy the program but only if yes
 

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
524
First Language
German
Primarily Uses
RMMV
In any event, you can use the plugin command

Code:
OpenNewTab http://www.google.com/
or

Code:
OpenNewWindow http://www.google.com/
to open a browser window / tab with a website - Google in this case, but you can type in other urls, of course.


From looking at the plugin, it also seems that you can decide not to have a link in the title menu, if that's important, but I'm not quite sure about that. (Otherwise it would be easy to modify the plugin file for that.)
 

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
NOTHING shows up in the window ???  this is even from the title screen itself and


same thing happens in-game.. With or without a browser open

2017-01-25 (1).png

2017-01-25.png
 

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
My friend has a project he wants to do totally online with a map system of a virtual website and pull up pages from within game..


and I'm trying to get this to work BEFORE he buys the software  because it's the entire point to what he needs to do.
 

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
Okay it WORKS in an EMPTY project for some reason... so it's interfering with some other plugin..  what's the best way to find out?
 

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
So now I'm going to try to see if it's this one plugin I recently put in to change the in-game menu ...  whatever it IS I will find out cause I need this to work..


So.. I'm copying my game folder and going to go through each one if these few I'm suspect of don't work.
 

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
okay weird my COPY of my game is WORKING...   strange indeed...


  and that's the in-game plugin command NOT the title screen that part is still NOT coming up at all


   I never even got to the point of going through the other plugins..

2017-01-25 (2).png
 

LadyBaskerville

Hell-poodle
Veteran
Joined
Sep 12, 2016
Messages
645
Reaction score
524
First Language
German
Primarily Uses
RMMV
If it's working in an empty project, that usually means there is some sort of plugin conflict. Try disabling all the other plugins and reenabling them one by one until you find where the conflict lies. 


If you're using other Yanfly plugins, make sure you have them in the correct order, as shown in the plugin list on his website. Changing the order between Yanfly and non-Yanfly plugins might also help.
 

mogwai

1984
Veteran
Joined
Jun 10, 2014
Messages
875
Reaction score
591
First Language
English
Primarily Uses
RMMV
Your post made me think of a plain javascript event solution and at first I didn't believe this would work, but I called document.location = "http://google.com"; by event script and to my surprise that, it worked! Also low and behold the RPG MV game wrapper seems to be a light version of Google Chrome. Interesting.

Screen Shot 2017-01-26 at 3.40.07 AM.pngScreen Shot 2017-01-26 at 3.39.49 AM.png



EDIT: I see that you are trying to open in a new tab/window.


With plain javascript in an event, you might want to look into window.open();
 
Last edited by a moderator:

Ancientspark74

Veteran
Veteran
Joined
Oct 24, 2015
Messages
100
Reaction score
5
First Language
English
THAT works amazingly, even if no buttons or toolbars.


if you know how to get those to open in the window too, that would really rock.


thanks this is a BIG help for my friend!
 

mogwai

1984
Veteran
Joined
Jun 10, 2014
Messages
875
Reaction score
591
First Language
English
Primarily Uses
RMMV
W3 says the toolbar parameter only works in Firefox and IE. The game wrapper is Chrome.


You can have the toolbar in the whole game though if that's not an issue or even maybe preferred, if you edit your package.json (set the window->toolbar->true) (see this thread for json file locations) btw he has the Mac package.json location wrong, but that thread is from 2015, so I'm not sure how accurate it may be now.
 

Lakaroth

Veteran
Veteran
Joined
Dec 9, 2014
Messages
274
Reaction score
132
First Language
English
Primarily Uses
EDIT:

I have build an .apk, a signed build relase ready for play store.
The link is blocked by a popup.. i need to link the complete version of my game.
So, you play the demo, then at the end you click the link for the Complete version.

How to fix it?
 
Last edited:

KuroyukiDevGames

Silver Kitsune Sage
Member
Joined
Aug 18, 2019
Messages
10
Reaction score
2
First Language
English
Primarily Uses
RMMV
Hey all! I had a related question about Yanfly's External Links plugin, but in connection with a game set to go fullscreen on PC. Is there a way to make the webpage open in a separate window but NOT make the game go all miniature with its game content? I currently have my game's screen size and game resolution settings in Yanfly's Core Engine plugin and a different plugin (named "fullscreen.js") by a developer named Christian Shicho set to the following JavaScript values:

Width is set to: window.screen.width * window.devicePixelRatio
Height is set to: window.screen.height * window.devicePixelRatio

I guess my question is, should I remove the fullscreen.js plugin and only use Yanfly's Core Engine plugin to set the game to fullscreen while losing the borderless frameless fullscreen effect, or is there some other way to get this to work?

Your thoughts?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
[necro]KuroyakiDevGamed[/necro]
This is also hi-jacking i.e. it is a different question to that of the OP. Please post a new thread. You can link back to this one if that helps your explanation.

[mod]I am therefore closing this[/mod]
 
Last edited by a moderator:
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,858
Messages
1,017,023
Members
137,565
Latest member
Callmelogann
Top