Jump to content

darrck

Alpha Tester
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • backer_title
    Contributor
  • Alpha
    Yes

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

darrck's Achievements

  1. Thanks man, this thing is great and the in browser codex is a blessing even when coding in the game. ☺️
  2. Hi, I'm looking for ways to test some LUA code outside of DU (trying to make a game with HTML) so I don't really care about the in game specific staff I just want to be able to test my crap and how it renders in HTML with LUA. Does anybody know a way to do LUA and html without dual universe (I don't have acess to a DU ready computer all the time) ?
  3. damn didn't see that one coming .... btw i found another way to deal with that but my race software broke anyways (2 players wen trough at near the exact same time and editing a db while reading it never goes well ....)
  4. Hi, I'm working on a script to count and display the number of laps made by different players in a race. I rapidly found out that the one programing board was infact multiple as it was run localy by all the players (when I start it I'm the only one who sees it as started) and therefore I tried using a database to sync them all up. I have an array full of ints and I'm trying to write functions that would help me get those in and ou the database (The problem only accurs when I try to get my arrays back) my script allways gets shutdown by the game for some reason (it's not a script error but a cpu overload or smth). so there's the code if annyone got some time to lose trying to help me: function insertIntArrayToDB(startKey,array) i = 1 while i <= #array do db.setIntValue(i+startKey-1, array[i]) i = i + 1 end end function getIntArrayFromDB(startKey) --we supose there's an unused key after the array i = startKey arrayToFill = {} while db.hasKey(i) do table.insert(arrayToFill,db.getIntValue(i)) i=i+1 end return arrayToFill end array={2,4,8,16,32,128} insertIntArrayToDB(0,array) backArray = getIntArrayFromDB(0) system.print(backArray) --btw printing arrays in chat doesn't work
  5. PenroseLabs:FA4FCC348B31A467ABCE2931107538AC

  6. FA4FCC348B31A467ABCE2931107538AC

  7. discordauth:f2zE-ju-26IbL1dzAmkVDNXL1xwmR9oo7A2Oc7iorL0=

×
×
  • Create New...