Jump to content
MakeWebGames

StarLords3K - An on-line strategic 4X space game


Recommended Posts

Posted
Looks like I'll have to give up on the Chrome conversion.

Seems Chrome has issues with iframe & visibility ... a hidden iframe isn't.

Tried to change to using display rather than visibility, got all swapped, then realized why I used visibility in the first place! Arrrgghh.

Display collapses the dimensions of an object, visibility does not. So you can't use display:none and referrer to things like clientWidth.

Unless I am missing something? Looks like Chrome is not ready yet. ;)

Will ensure the homepage can be seen in Chrome as per suggestions above, Thanks.

Does anyone actually develop using Chrome? If so what tools do they use? The native dev-tools and firebug-lite seem pretty lame.

Yeah, what exactly is your problem?

"Develop with Chrome?"

Chrome handles CSS better than the other browsers, in my opinion.

I use Chrome exclusively and things always behave exactly how I expect them to.

Though, a shot in the dark, maybe look into -webkit-?

Posted

Try this, create an iframe{visibility:hidden;width:100%;height:100%;z-index on top of all else.

in dev tools you cannot click on anything "under" it even though it is hidden.

In the browser the iframe will still be visible even though it is hidden.

Of course, not knowing what I am doing may be part of the problem and I am missing the obvious, but found several posts online about this.

Asked stackoverflow question

"chrome guy" seemed to think it a bug and reported it. I did find it strange, I would find a bug on my first day working with Chrome...

If you want to test, go to My website

Click Chrome logo in corner.

Click "Manual" button

Right-click and select "inspect element" from the context menu.

What do you get? A "hidden" iframe.

If you can see something I did wrong, please enlighten me.

I would like to get Chrome working...

Posted
Try this, create an iframe{visibility:hidden;width:100%;height:100%;z-index on top of all else.

in dev tools you cannot click on anything "under" it even though it is hidden.

In the browser the iframe will still be visible even though it is hidden.

Of course, not knowing what I am doing may be part of the problem and I am missing the obvious, but found several posts online about this.

Asked stackoverflow question

"chrome guy" seemed to think it a bug and reported it. I did find it strange, I would find a bug on my first day working with Chrome...

If you want to test, go to My website

Click Chrome logo in corner.

Click "Manual" button

Right-click and select "inspect element" from the context menu.

What do you get? A "hidden" iframe.

If you can see something I did wrong, please enlighten me.

I would like to get Chrome working...

Did you try the JS suggestion on that very question?

Posted

I am pretty sure that when display:none is set you will not be able to use scrollTo on that or sub-elements.

Whereas visibility:hidden will still let you do this (and much else).

Posted (edited)

Slight change to your fiddle, seems to only be if the hidden attribute is on an iframe

But a weird thing,

click RUN, displays as expected

click UPDATE, boing!

So may only be when the attribute is set via javascript!?

http://jsfiddle.net/BHWN2

Edited by mahks
Posted
Slight change to your fiddle, seems to only be if the hidden attribute is on an iframe

But a weird thing,

click RUN, displays as expected

click UPDATE, boing!

So may only be when the attribute is set via javascript!?

http://jsfiddle.net/BHWN2

What version of Chrome are you using?

Run and Update both show the same result for me.

Posted

Don't remember changing any settings except in dev tools, and that is not open.

Would you mind following those steps in post#27 and see if the iframes are visible in your browser & clickable in dev tools?

Thanks!

Posted

I've tried going to your site but after clicking on the Chrome button (Says image not found, by the way) I just get a constant loading animation.

I don't believe it's my internet, but who knows?

Posted
I just get a constant loading animation.

Yes, that is what shows at the moment...try :

Right-click and select "inspect element" from the context menu.

What do you get?

I get a "hidden" iframe. (id='f_load') actually the HTML tag, but on the hidden iframe

Posted
Yes, that is what shows at the moment...try :

Right-click and select "inspect element" from the context menu.

What do you get?

I get a "hidden" iframe. (id='f_load') actually the HTML tag, but on the hidden iframe

So, wait, is your problem the "hidden" iframes actually showing up on the screen or just that it's showing they exist in dev tools?

Because, if it's the second, I don't really see how that would be a problem from a player's standpoint.

Posted

I have both issues, I can see "hidden" iframes in the browser.

and

I cannot select anything "under" "hidden" empty iframes with "inspect element" from the context menu.

  • 2 weeks later...
Posted

I don't post often here any more, and this thread pretty much sums up why. This nice chap comes on here to tell us about his new game, clearly explains why it is limited to Firefox, yet the first 3 pages are all questions as to why it is limited to Firefox and not supported on other browsers. Not one person decided to actually review the game and it's content, quite sad really.

That being said, I will give your game a try tomorrow when I get the chance. It definitely does look interesting from what I've seen so far. Seems like you've put a lot of time and effort into this.

Posted
I don't post often here any more, and this thread pretty much sums up why. This nice chap comes on here to tell us about his new game, clearly explains why it is limited to Firefox, yet the first 3 pages are all questions as to why it is limited to Firefox and not supported on other browsers. Not one person decided to actually review the game and it's content, quite sad really.

That being said, I will give your game a try tomorrow when I get the chance. It definitely does look interesting from what I've seen so far. Seems like you've put a lot of time and effort into this.

Ridiculousness.

Two pages are, in fact, filled with attempts to UNDERSTAND why it won't work outside of Firefox in an effort to try to supply some kind of solution.

Get over yourself.

  • 3 weeks later...
Posted
I will give your game a try tomorrow when I get the chance. It definitely does look interesting from what I've seen so far. Seems like you've put a lot of time and effort into this.

Did you try the game? Any comments?

  • 1 year later...
Posted (edited)

Update :

2 new in game options :

- Design your own ships

- Negotiate Treaties with Independent stars (NPCs)

Chrome has fixed the iframe visibility problem so I have got it 98% working in chrome now.

Just some incompatible things with canvas.

Graphics marginally improved, I updated the images in post # 1

Tutorial re-done, simplified, got rid of the videos, now text pop-up based. Could use some new blood to test the tutorial...

Edited by mahks
  • 5 weeks later...
  • 2 weeks later...
  • 10 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...