Jump to content

Setekh

Legendary Member
  • Posts

    2,510
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Setekh

  1. http://maxcheaters.com/forum/index.php?topic=278131.0
  2. Setekh

    Trance

    http://www.hulkshare.com/yj29uryjro77 My teddy eats children: 11PM - Cyperoptics Remix
  3. Happy for you, that's the way to do it actually. Learn that is.
  4. Cool, but i still dont see u using jme3 XD
  5. Setekh

    Missing

    As is my right. Why did i even bother replying, i feel dumber already >.>
  6. Setekh

    Missing

    You guys already got ur reason for denial. And afaik, you guys didnt even like the forum, so why the new accs?
  7. Your all dumb, except pauler. So shut up kiddies. I should smite you Stewie for starting a flame war.(considering it) Locked.
  8. Nop, try making a large YAML with data, and simulate some changes, see how that works out for maintainability. And imagine the file size. There are times where human readability is not needed, which is in static data files. YAML bewitched you, but seriously everyone will turn down YAML over xml and json for HR data serialization.
  9. sudo apt-get install more-adds-api
  10. http://maxcheaters.com/forum/index.php?action=profile;u=106443 That was a joke. In case you didnt get it. I was laughing there XD Lol
  11. hahahaha its the same thing, im crying right nou of laughter hahahaha Also ill tell you why YAML should be always left as a config. Indent dependency.
  12. no l2 gang is owned by a romanian fat kid. A 26 yo kid. Or some shit like that.. the guy is brain damaged.
  13. jaxb made xml easy actually, its just a matter of understanding the annotations, tho its kind of annoying making so many classes to use them as protocols just to pass the data to another holder. Also XML was done by W3C, who wanna guess what they do in particular? The only downfall of json is that they dont have time stamps. And its easy to read, in fact easyest to read and write, basically there are thousands of editors.
  14. this will get u up to speed: http://learnlayout.com/ I know its an old post, but still, someone might search for this :P
  15. its all about managing json. Take a look at jackson @ codehouse
  16. Demanding something is not an opinion.
  17. http://en.wikipedia.org/wiki/Hierarchy http://en.wikipedia.org/wiki/Inheritance_(object-oriented_programming) jesus >.>
  18. Sorry, didnt make my self clear, what im using as a "template" is actually the L2NpcTemplate itself, annotated, i do not clone the whole hierarchy, i just make a new instance and set the fields(using StatsSet on that pack) accordingly. A noSQL system on a l2j server is a bad idea, mysql outperforms mongodb in some locations, its still a server and its just not worth it, if there was a an "embed" option of it, then yeah. MongoDB is a documented database server. Imagine mysql saving tables as xmls. Tho those guys used json since its less chars and if u binary it(more like binary string serialization) with bson, it gives out a better import/export performance. But still, its outperformed as a server by mysql. NoSQL is good for game engines or applications that need to have a dedicated database for standalone use. Still, it would be pretty neet if you could unserialize a template in case of an emergency, i know its possible with java implementations of bson, but not sure how that will be possible with mongodb, since they use json at its fullest even translating it to java script. Anyway, json is pretty nifty, and there are alot of serialization implementations of it. Like Jackson @ codehouse. What i like of it is that, we can lazy cache stuff and we can manipulate strings how we want, when we want effectivly. For instance: A folder of data, if i was to make a jaxb implementation for the skill system, i would of have to get all xmls and then dom-parse them all then write all that data in a single xml cache, then i will have to call JAXB and start the unmarshal process. That means i will also have to make a "file aware of change system", and then re-cache all that data. In an l2j server by the time it got to the half of the process i would get an "out of memory exception" :P With json, i can just read the file, drop every white space while reading the stream, and then do w/e the hell i want XD I can even get data recursively, meaning i can specify: boolean asArrayMap = true; int depth = 1; // i did depth 1, it will only get me the first entrys, SkillName skillId and level. JsonData = json_decode(new SomeReader..., asArrayMap, depth); Doing so, i wont need to create a new Skill instance just to print the skill name and level, i then can serialize the data again in json or keep it in a map. Easy and memory efficient. Also this si how a json based skill would look like: { "skill" :{ "name": "Deadly Blow", "level": 3, "powerLevels": [35, 33, 120], "effects": { "sleep": { "time": 1000, "effectIcon": "someIcon" } } } } Paste it here for highlighting: http://json.parser.online.fr/ And there are a lot of uses, its like the discovery of petrol xD EDIT: I forgot since its basically javascript, you can get it here highlighted right: http://pastebin.com/F7q7dcUL
  19. yeah, thats what inspired me to make a surrogate system and now a plugin system. Russian packs also have alot of crammed up xml files, so when doing an npc, i did this: http://pastebin.com/LqrE9Yg1 So i had all the data of the npc template, and i was just overriding stats and names, so forth. Marshaled/Unmarshaled with jaxb, giving me the option to make surrogates with a gm command and save the file with another. Tho im giving up xmls.. i find json way more efficent, and if i binary translate it, it can act as an efficient database :P as mongodb is.
  20. What happens when you scream in Sweden at night First trendy mass thing i actually like.
  21. the post is from 2009, u both got tricked by a spammer XD edit: damn wifi, opened the wrong topic.. ignore what u just read >.>
×
×
  • Create New...