KitsuSenpai's Recent Forum Activity

  • Fixed mate..

    Thx bro

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    getting this when opening:

    Edit:

    Got the EncDec.zip from http://290px.com/plugins/EncDec.zip

    are you using any plugin using "Zeitas" as plugin id, if yes remove that one or if you have duplicated the same encdec plugin then delete that copy.

    I have the same error, because you uploaded the wrong plugin. You uploaded the official "function" plugin by scirra instate of yours <img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing"> would be nice if u can fix your upload pls

    function GetPluginSettings()
    {
    	return {
    		"name":			"Function",
    		"id":			"Function",
    		"version":		"1.0",
    		"description":	"Run other events in an action, like functions in programming languages.",
    		"author":		"Scirra",
    		"help url":		"http://www.scirra.com/manual/149/function",
    		"category":		"General",
    		"type":			"object",			// not in layout
    		"rotatable":	false,
    		"flags":		pf_singleglobal
    	};
    };[/code:3k1aske7]
  • > ... So after 200,000 generated IPs in the array, it takes 0.0083s on my 120hz Monitor to generate a new IP, that is unique. But ... the normal delta-time for a 120hz monitor is all so 0.0083s per tick.

    >

    > On my Intel i5 4570 with 3.20ghz, NWjs has a CPU usage of ~0.9% after generating over 200,000 IPs ... so no real performance impact.

    >

    > Btw. an 1dArray with exactly 200,000 IPs would have a physical size of 4.2mb ...

    >

    RIght, by "large number", I am thinking of billions or trillions. Not 200,000. :-p

    i dont think, that i will have that much players ... ever

  • So after fiddling with some NW.js versions, I discovered, that this is not a Construct2 bug. It's a NW.js bug, present up to version 0.15.2. It is fixed since version 0.16.0-beta1 ... so this can be closed.

    Sorry for bothering and thanks

  • Populate an array with sequential values and then remove an element randomly each time...

    Then the array would by very huge in file size. Nobody knows how many user would play this game in the long term, but every player needs 1-10 IPs, so i had to generate a very big amount of them. And the performance impact would be no different.

    Btw. I'll assign every IP a Username and other informations, so with my solution, i can do this in one go without the need of two arrays.

  • When you generate an IP, add it to an array and compare each time you generate a new one in order to throw out copies.

    This will become very inefficient though if you are generating large numbers of these things.

    I already do that (see Screenshot)

    I did a Benchmark to proof you wrong. I ran a test with a simple project to measure the time it takes to generate a new IP with over 200,000 IPs in a array. Btw. Browsers are effected by vsync (NWjs too) ...

    ... So after 200,000 generated IPs in the array, it takes 0.0083s on my 120hz Monitor to generate a new IP, that is unique. But ... the normal delta-time for a 120hz monitor is all so 0.0083s per tick.

    On my Intel i5 4570 with 3.20ghz, NWjs has a CPU usage of ~0.9% after generating over 200,000 IPs ... so no real performance impact.

    Btw. an 1dArray with exactly 200,000 IPs would have a physical size of 4.2mb ...

    EDIT:

    And this will run server side, so no client performance impact.

  • Sry, forget to mention: This happens in preview and export (win32 and win64)

    EDIT2:

    Btw. this is not the case, when in "No Frame" Mode ...

  • Problem Description

    NWjs Window is 16*8px larger than Canvas whan in package.json "resizeable": true and 24*18px larger when "resizeable": false

    EDIT:

    This happens in preview and export (win32 and win64)

    EDIT2:

    Btw. this is not the case, when in "No Frame" Mode ...

    Attach a Capx

    NWjs_WindowSize_Offset.capx

    Description of Capx

    Simple Project with NWjs, Browser and Text Object to demonstrate Expression Outputs and possible Bug with NWjs

    Steps to Reproduce Bug

    • Start the .capx File
    • Read Expression Outputs
    • See black space between Canvas and Window

    Observed Result

    NWjs Window is bigger as Canvas

    Expected Result

    NWjs Window should have the same size as the Canvas

    Affected Browsers

    • NWjs

    Operating System and Service Pack

    Windows 10 x64 - Version 1511

    Construct 2 Version ID

    Personal License - Release 229

    NWJS for Construct 2 Version

    v0.15.0

  • you should insert browser plugin

    and set action

    on start of the layout >> request Full screen

    This would not solve the Problem, when you wanna play the game in windowmode

  • Do you use the newest Constuct2 and NWjs Version? Because this shouldn't happen.

  • Hi

    I try to generate a random IPv4 for a simulation, but thats not the hardest part:

    floor(random(256)) & "." & floor(random(256)) & "." & floor(random(256)) & "." & floor(random(256))[/code:1q0xyufz]
    My problem is, every request should generate a new random IPv4 (without duplicates) ... how do i have to do that?
    
    Thanks ?
    
    [b]EDIT:[/b]
    I found a way myself, if someone have a better solution, let me know 
    The official  documentation is very handy!   
    
    [b]EDIT2:[/b]
    I could even block reserved IPs
    
    [img="https://dl.dropboxusercontent.com/u/11035294/Scirra.com/request_random_IP.png"]
  • Ok, i found the problem and a solution. The thing is, that "Every Tick" changes like changing the text in a textbox every tick, make the tracking function freak out. So i wrote a little function, that pauses the game while draging the window.

    I will make a tutorial soon on how to make a custom Window Frame with NW.js

KitsuSenpai's avatar

KitsuSenpai

Member since 20 Feb, 2015

None one is following KitsuSenpai yet!

Trophy Case

  • 9-Year Club
  • RTFM Read the fabulous manual

Progress

10/44
How to earn trophies