emperorkk's Forum Posts

  • 9 posts
  • By unchecking the minify option everything works fine for me as well.

    I've tried multiple combinations on new capx so far to pinpoint when the minify will break the script but haven't had any luck yet. Must be some combination that i haven't figured out...

    Note: All the plugins i'm using work very well on their own minified or not...

  • Now i'm loading results to a secondary temporary array and I'm quite happy with how this works, my only issue that currently I'm looping through the other two dimentions to get this done (just like i would in js probably).

    My array is a comprehensive Tech tree for the game I'm making

    1 dimention = [Tech Level],[Tech Level Title],[Tech Level subtext]

    2 dimention = [Type of Technology],[Type SubText]

    3 dimention = [id],[Name of Tech],[Subtype],[Description],[Research Points],.... n=25

    So I'm getting all information of dimention 3 where ie [Tech level]<= 4 and [Type of Technology] = Fleet and then load Dropdownlists and a temprary array for the click options. Concatenating [Tech Level subtext],[Type SubText],[Description] provides the full description of the item.

    I just didn't like how i made it... I always think there is a better way to do things. :)

  • Thx but in any case this gives the first instance found and LastIndexof gets the first from reverse (or last...). But if I have 3 values that correspond to "name", I am missing one, this way.

  • My question is kind of generic.

    I am aware that arrays are not datasets so as to locate to a certain entry, however I am working on a 3D array that contains lots of info and I am in need of finding the position of a specific entry (or more) and then get one of dimentions (all fields from that dimention) for further use...

    So I was wondering if there was a quicker way to get to the info I need than the one I've currently implemented.

    What I currently do.

    1. I check if the value (ie.: "name") I am looking for is contained in the array.

    2. I loop twice each dimention (Height,Depth)

       and when "name"=Myarray.At(x,Height++,Depth++)

       get the info I need for all x fields for each Height and Depth found to be matching.

    As far as I am concerned this works fine and there is no delay, however i keep wondering if there is some smarter way to do it.

  • ...and i was so sure i had it... It works just fine on its own.

    Link to uploaded project

    kourentzes.com/stars/v3/selectedindex

    link to capx

    dropbox.com/s/obv0vadugqsjvx2/SelectedIndex.capx

    both preview and on browser work just fine.

    Please close this post. I'll try and find the combination where this happens and get back to you with a proper bug post if this is indeed a bug.

  • will do !

    Will get back to you as soon as I have it ready.

    thx for your time.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I found what the problem is.

    The event

    <img src="http://img51.imageshack.us/img51/8002/lpa3.png" border="0" />

    prntscr.com/1mg471

    starts the issue, but it doesn't go away unless you remove the relevant object as well... that's why i couldn't find it in the first place... i just removed the events from the event sheet.

    ...and yes as always it was the last thing I added...

    If I can provide anything else useful please advise.

    ---Update---

    what seems to break the script is the call DropDownList.SelectedIndex

    which i'm pretty sure i've used before but i'll do some more testing and see.

  • kourentzes.com/stars/v3/mainold

    --old version

    kourentzes.com/stars/v3/main

    --black screen version

    if it were a server issue wouldn't my local appache show it properly?

    thx!

    I get this error in the console:

    Uncaught TypeError: Property 'w' of object [object Object] is not a function c2runtime.js:199

    rb c2runtime.js:199

    b.load c2runtime.js:71

    b c2runtime.js:58

    $a c2runtime.js:112

    (anonymous function) kourentzes.com/stars/v3/main/:77

    l jquery-2.0.0.min.js:4

    c.fireWith jquery-2.0.0.min.js:4

    x.extend.ready jquery-2.0.0.min.js:4

    S jquery-2.0.0.min.js:4

    ---update

    Since working backwards by deleting stuff didn't work, i'll try adding till i get to the error.

  • Link to .capx file (required!):

    dropbox.com/s/yymc2r3jkezytwu/StarsV4-3skqbylo6yztf_2.capx

    --working one

    dropbox.com/s/afuh0r9e5t2gamr/StarsV4.capx

    --black screen

    Steps to reproduce:

    1. Preview it and it loads just fine

    2. Just export to any web server even local

    Observed result:

    Black screen on loading

    Expected result:

    Load main Layout

    Browsers affected:

    Chrome: yes

    Firefox: yes

    Internet Explorer: yes

    Operating system & service pack:

    Win 7 pro 64-bit sp1

    Construct 2 version:

    v139 64-bit    

    Other Comments:

    I'm not sure this is even a bug. It was working fine till some point. I removed all my added events till yesterdays version but still it loads as a black screen. So I guess I should be looking at something else, but i have no idea what.

  • 9 posts