174 Open Daily games
3 Open Realtime games
    Pages:   1   (1 in total)
  1. #1 / 9
    Shelley, not Moore Ozyman
    Rank
    Brigadier General
    Rank Posn
    #40
    Join Date
    Nov 09
    Location
    Posts
    3450

    I'm having trouble getting my XML file to import.  Granted it is unreasonably large, but I'm curious just how much I need to cut things down.    It kind of seems like it is just timing out, so I'm wondering if being on a faster internet connection would make a difference.

     


  2. #2 / 9
    Commander In Chief tom tom is offline now
    WarGear Admin tom
    Rank
    Commander In Chief
    Rank Posn
    #763
    Join Date
    Jun 09
    Location
    Posts
    5651

    How big is it? Off the top of my head it's 2MB but I need to double check.


  3. #3 / 9
    Shelley, not Moore Ozyman
    Rank
    Brigadier General
    Rank Posn
    #40
    Join Date
    Nov 09
    Location
    Posts
    3450

    I already decided to rework things because it was ridiculously huge (15MB).  I figure that could take a few minutes for someone with mediocre internet to download.  I think 2MB is probably a good limit given the current state of the internet.   I think the simplified version I've come up with will be less than 1 MB in size.  I'll post again once I have the final numbers.

    Edited Sun 7th Apr 23:49 [history]

  4. #4 / 9
    Premium Member Yertle
    Rank
    Major General
    Rank Posn
    #21
    Join Date
    Nov 09
    Location
    Posts
    3997

    LOL, 15 MB!!!! Can the Native/Flash Players even handle that?

    If I could figure out how to draw a line in Photoshop I would be a lot more well off with the Mac thing...

  5. #5 / 9
    Shelley, not Moore Ozyman
    Rank
    Brigadier General
    Rank Posn
    #40
    Join Date
    Nov 09
    Location
    Posts
    3450

    I don't know.  It took about 2 hours for my python script to run and generate it. 


    It might sound like overkill, but from a users perspective, the more complex map would actually be simpler, because I can use the extra factories to give more information about how the map works.  Now I have to simplify some of that, so it will be a bit less intuitive what is going on.


  6. #6 / 9
    Standard Member btilly
    Rank
    Colonel
    Rank Posn
    #85
    Join Date
    Jan 12
    Location
    Posts
    294

    Ozyman wrote:

    I already decided to rework things because it was ridiculously huge (15MB).  I figure that could take a few minutes for someone with mediocre internet to download.  I think 2MB is probably a good limit given the current state of the internet.   I think the simplified version I've come up with will be less than 1 MB in size.  I'll post again once I have the final numbers.

    Random inflammatory opinion, XML is ridiculously huge.  If you're dealing with a scripting language, JSON gives you equivalent expressive power in much more compact form.  (Faster to process as well.)  If you're dealing with a compiled language, well, there is a reason that Google uses protobufs internally.  (Within Google, XML only exists for talking to people outside of Google who have worse toolchains.)  Apache Thrift is a similar idea.

    Of course for most problems, even XML is "good enough".  But I don't expect people to stop coming up with new formats any time soon.  Personally I'm rather excited about http://kentonv.github.io/capnproto/.


  7. #7 / 9
    Shelley, not Moore Ozyman
    Rank
    Brigadier General
    Rank Posn
    #40
    Join Date
    Nov 09
    Location
    Posts
    3450

    I basically agree.  JSON is also much easier to read than XML IMO.  I'm not familiar with protobufs, Apache Thrift, & capnproto, but they all look interesting.

    The big advantage to XML is its history.  Much easier to find libraries, editor support, etc.  And as you said, it's usually 'good enough'.


  8. #8 / 9
    Commander In Chief tom tom is offline now
    WarGear Admin tom
    Rank
    Commander In Chief
    Rank Posn
    #763
    Join Date
    Jun 09
    Location
    Posts
    5651

    If you're really stuck I can tweak upwards... poss to 4MB but 15MB is a bit excessive ;)


  9. #9 / 9
    Shelley, not Moore Ozyman
    Rank
    Brigadier General
    Rank Posn
    #40
    Join Date
    Nov 09
    Location
    Posts
    3450

    tom wrote:

    If you're really stuck I can tweak upwards... poss to 4MB but 15MB is a bit excessive ;)

    Thanks Tom.  I think I can make this work.  I'll let you know if I want some help.


You need to log in to reply to this thread   Login | Join
 
Pages:   1   (1 in total)