• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!
Magtheridon96

Profile posts Latest activity Postings Experience Albums Resources About Medals

  • Great :) He saw your welcome but he's such a dick XD(I am so dead if he read's this ;_;)
    Check it out


    //cipher temp until MD5 done
    local Cipher cipher = Cipher.create("2b28ab097eaef7cf15d2154f16a6883c")
    local SaveCode data = SaveCode.create()

    call data.write(-1)
    call data.write(5353)

    //call data.applyHash() //waiting on MD5
    call data.encrypt(cipher)
    call data.save("mapName", "fileName")
    call data.destroy()

    set data = Data.create()
    call data.load("mapName", "fileName")
    call data.decrypt(cipher)
    call data.validate()

    set myValue = data.read() //-1
    set myValue = data.read() //5353

    call data.destroy()
    congrats for the Merit Badge old friend :D
    you deserve it because you make bad-ass spells
    Congrats on merit badge eitherway...I am banned from the chat for a month...
    Also to increase size its only needed to add one more byte which will multiply max handled size by 253
    well, there are already petabyte sized disk blocks :D But that amount of storage needs a lot RAM too, especially if there is a lot files contained there. No matter of unloading intensity, it needs at least 50 MB ram for every 400000 files( what is about 300 GB ) so at the 60 Petabyte data it requires 100 GB RAM. EXCEPT if we only load fully the OS files( #3#3#3#3 directory ) and just save position of the others, and on need it loads it from the database. a position is 7 byte so vica-versa it can decrease ram requirement to 30-40 GB. And yeah, I am planning for future :D
    Pos[c]Description[r]0-509[c]Main bootstrap for loading the OS-es list, or wake up from hibernation, to boot, etc..[r]510-511[c]Boot signature( for computer to know if it is a bootable disk )[r]512-1023[c]Additional bootstrap area, if it is not needed then we will cut this out.[r]1024-1030[c]Partition #1 start address( yes 7 bytes, up to 58 petabytes ), by default whole disk space is addressed at the first partition entry, like 1536-Disk size, then this big chunk is going to be sliced into smaller parts[r]1031-1037[c]Partition #1 end address[r]1038[c]Partition #1 format type( 0 = unformatted area )[r]1039[c]Partition #1 OS state( 0 = no OS here )[r]one entry for partition table costs 16 bytes, and the partition table is going to be 512 bytes, so 32 partitions total.[r]1536-[c]Partitions and user files, etc...
    Need new Lua utils... the Lua stuff from grimoire doesn't run on newer machines..

    soooo -.-

    we'll probably need all of the map editing stuff again : \

    edit
    and yea, File I/O is updated and has a link to a codeless save/load demo =)
    Hey. Do you hate moving your windows around with your cursor? Try Slate App. Google it. It's awesome!!
    Come to chat :c

    I just made an epic file system plan :D I hope it can work, then it will rule the world XD
    I did the plan, most of common resources are updated and connected to the central engine. ;) If you know what I mean.
    Good news.. I think that my new Network lib is done... o-o

    10,000 integers seems to be the reasonable limit at 81 seconds.
    3000 integers, 50% bigger than SC2's raw max, at 3 seconds.
    I'm doing fine and sorry the long reply.
    I went swimming, and going swimming again tomorrow.
    I really like your suggestion about the constants, I know it's possible but didnt think of it :p...
    I uploaded JFileIO beta to Files\compiler. For copying files it uses a lot cpu, the virtual file part does not work yet, but on write test it made 80 MB/sec during 10 seconds and 200 MB/sec on 1 second, at write test it was not using a lot cpu. Tomorrow I continue

    EDIT:
    Yes, the write stuff is pretty cool, Max HDD use and 10-20% thread usage

    EDIT:
    D: The read part is which slow as hell :C 100MB in 10 secs, too bad.

    EDIT:
    Lol I found what was the problem XD the superslow << operator of fstream which I had to log the file I read, now, 1GB per 10 sec. :D 10-20% thread usage.

    I did a pretty good job here :D

    EDIT:
    I have to note I didn't do this on SSD, since I have no SSD :C Also I performed these while on battery lol :D I was lazy to put my laptop back to my bed to charge >_> However battery mode is not affecting the results much

    EDIT:
    I guess the max speeds somewhere at 500 MB per seconds, or even more, if we don't take file read-write into account.
    I asked Eubz about it, but it might be a bit complicated for him I'll be glad if you can help.

    Just check what I said to him here: http://www.hiveworkshop.com/forums/members/eubz/sonofjay/

    Yea, you surely do :)

    Well, the code I posted was not the final one, I had to do some further tweaks to it, but I think now I'm done with everything (coding-wise). I'll make a background story for him, and I'll post it again; only the test map will be left once it's done.
    Jesus Christ... so I solved the problem. But it wasn't the coding...

    I did the changes that we talked about (the Tile linked list struct) there was no difference. Then I became suspicious. I moved my hero to the opposite quarter of the map and cast the spell. And the field appeared at a totally wrong position. It became clear that "64." is not the right tile size. I knew that it must be a power of 2; luckily WE shows the position of the cursor - the size was above 100, which means it had to be 128. And yes, it is 128... so it works now.

    This is the final code:
    http://www.hiveworkshop.com/forums/pastebin.php?id=nrv7al

    As always, feedback is welcome :)
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top