Jump to content

Kind-Sir

Member
  • Posts

    39
  • Joined

  • Last visited

Everything posted by Kind-Sir

  1. I got through just pointing at things I wanted in France. Except at Starbucks, but it was more or less okay for me to speak English there due to being in Paris. On topic: I am not a big fan of school, however I do not think it sucks. I had a crap time in school, but it was made better by starting up clubs and making friendships with teachers instead of being just a student. Since I had to work after schools until the early AM, I usually slept in certain classes to make up for lack of rest. My teachers were cool with this because I studied, got high test scores, and participated in class when I was able to. It all boils down to how you spend it. If you're going to school to just go to your classes and consider that it sucks, you're doing it wrong. Make the most out of it. Spend an extra hour in a club at your school, or spend 2 minutes after class talking to your teacher about something interesting. If tests are your hardest part, treat them as review. I always treated tests as review of what I knew, and if I didn't know enough to do well on the test, I'd just study the whole subject with another method. It's mostly trial and error, keep on trying new things. Better to fail and figure out what works for you, then to do average and move on with it.
  2. Meh, my laptop's hard drive gave way. Got a solid state laying around, gonna slap on a development platform on it tomorrow. Figure I'll call it a night before I get more frustrated.
  3. They seem like a simplified version of a .obj file See my post early in this thread. From there, we can just load the .obj file into Blender and edit the mesh, then export it back out as a .obj and convert it to the PZ mesh format.
  4. Looking nice! I typed up a python script to convert pzmesh.txt to .obj and vise versa, but my laptop just crashed and it seems like I lost some of my code. Not much harm, just a little annoying. Feel like technology is slowly becoming sentient... Anyhoot, I'll be posting my python code once I rewrite some of the code, and possible see how to load these models into the game. Perhaps need to edit a file, but the Java code to call models into existence seems to be in projectzomboid/zombie/core/skinnedmodel/ModelManager.class function loadStaticModel It takes in "pzmesh", "texture" ("weapons_woodplank", "Objects_WoodPlank") and outputs a model constructor, which is the class core/skinnedmodel/model/Model.class I believe I can't post any code publicly. Wonder if there's a Lua loader for meshes...
  5. I looked through the Java decompiled code and found a class called ModelLoader.class located in projectzomboid/zombie/core/skinnedmodel/model The function "load" has a case switch, and it looks like case 5 cycles through each vertice and loads in the following information (currently the following is only for verticies without tangents): v x y zvn x y zvt x yExample:# Vertex Buffer:-0.05332200, -0.00887400, 0.000000000.00000000, 0.00000000, 1.000000000.79623500, 0.96012600 And face being just f x y z
  6. Okay, I'm going to just play around with converting the wooden plank into a .obj file and see if I can load it into Blender.
  7. Is there any way you can post your work? Be it Github, Dropbox, etc.
  8. I'm going to have a crack at what Omegapl mentioned. It'd be really nice to see some new models in the game, for guns, animals, etc. One thing for starting off would probably look at how these model files are loaded into the game. First things first though, gotta get me some energy and candy.
×
×
  • Create New...