elitepvpers

elitepvpers (https://www.elitepvpers.com/forum/)
-   Dekaron Private Server (https://www.elitepvpers.com/forum/dekaron-private-server/)
-   -   Look what i found (https://www.elitepvpers.com/forum/dekaron-private-server/430851-look-what-i-found.html)

conquer93 06/28/2010 20:30

Hey how do i get this >
1. Open Command Prompt/Console/Terminal
2. Type: C:\Python31\python.exe dekaron_unpacker.py --directory="<Dekaron_Directory>\data\"

i open CMD and then ?:S

Indrek888 06/29/2010 06:44

to bad we cant export as dekaron .mesh so its pointless

♠Vegeta♠ 06/30/2010 17:35

I found a script on the web to export meshes from blender, im not sure if it works or anything as im not good at any of this stuff.

If your interested just let me know and ill post a link here.

Lanayru 07/01/2010 13:39

i am very interested in that export ^_^
i have worked with this program ALOT and have made some nice stuff
but sadly i haven't been able to export as .mesh T_T

pieter 07/01/2010 14:39

it that would work it would mean a complete new start in the modding part for dekaron!

♠Vegeta♠ 07/02/2010 04:29

Here guys heres the script, i dont know who to give credits to BUT I DID NOT MAKE THE CODE. Also im not sure if its a full or unfinished script.

Spoiler:
import Blender210 as Blender

import math

import string

import sys



exportAnimations = 1





def printModuleInfo(module, example):

exec("import %s" % module)

print

print "#" * 79

exec("print %s.__doc__" % module)

print "#" * 79

exec("names = dir(%s)" % module)

for name in names:

exec('ifClause = "if type(%s.%s) == type(%s.%s): "' %

(module, name, module, example))

exec('statement = "print %s.%s.__doc__"' % (module, name))

exec(ifClause + statement)





class AllegroExport:



def __init__(self, filename):

self.filename = filename

self.file = None

self.scene = None

self.display = None

self.meshname = None



def export(self, meshname):

self.meshname = meshname



print "exporting ..."

self.file = open(self.filename, "w")

self.writeHeader()

self.writeVertexes(meshname)

self.writeTris(meshname)

self.writeEnd()



self.file.close()





def writeVertexes(self, name):

#if Blender.isMesh(name):

self.writeIdentifier(name)

object = Blender.getObject(name)

mesh = Blender.getMesh(object.data)

cname = name

cname = string.replace(cname, ".", "_")

cname = string.replace(cname, " ", "_")

cname = string.lower(cname)

self.file.write("V3D %s_v3d[]= {\n" % (cname))



index = 0

for vertex in mesh.vertices:

self.file.write(" {%2.6f, %2.6f, %2.6f},\n" %

(vertex[0],

vertex[1],

vertex[2]))

index = index + 1

self.file.write(" };\n")





def writeTris(self, name):



if Blender.isMesh(name):

meshobj = Blender.getObject(name)

mesh = Blender.getMesh(meshobj.data)



self.writeIdentifier(name)

cname = name

cname = string.replace(cname, ".", "_")

cname = string.replace(cname, " ", "_")

cname = string.lower(cname)



self.file.write("TRIS %s_tris[]= {\n" % (cname))

index = 0

for face in mesh.faces:

self.file.write(" {%s, %s, %s},\n" %

(face[0],

face[1],

face[2]))



self.file.write(" }\n")

index = index + 1

self.file.write("}\n")



else:

print "Sorry can export meshes only ..."



def writeEnd(self):

print "... finished"



def writeHeader(self):

self.file.write("/* file exported by blender mesh_exp.py\n")

self.file.write(" script by Matt Smith 2003 */\n")



def writeIdentifier(self, name):

self.file.write("// %s\n" % name)





#if __name__ == "__main__":

# printModuleInfo("Blender", "getCurrentScene")



v3d_export = AllegroExport("\\Devprojects\\speedhack\\test.c")

scene = Blender.getCurrentScene()

v3d_export.export("Plane.021")

Good luck and i hope this will solve everyones problems.

Regards
♠Vegeta♠

FattyB 09/07/2010 03:43

It was taken from here [Only registered and activated users can see links. Click Here To Register...] and it is only the very basic frame work for exporting the vertices and indices. It WILL NOT instantly export to .mesh format.

Rasty04 03/19/2014 21:31

my blender cant open .mesh :(

Farius~ 03/19/2014 23:46

Quote:

Originally Posted by Rasty04 (Post 27564010)
my blender cant open .mesh :(

This post was about 4 years ago

Rasty04 03/20/2014 00:02

i need to resolve this please :/ add me at skype: julian.gomez910 please need solution to open .mesh

Decima 03/20/2014 00:45

[Only registered and activated users can see links. Click Here To Register...]

he posted how to do it ffs. . .

and if u continue reading u will see [Only registered and activated users can see links. Click Here To Register...]

where he tells you it cant be exported to use with the game.

i find it hard to believe that you are going to get this done seeing as how u cant even read the first page of a thread about how to import it

"Dark_Evolution" 02/12/2015 16:31

QQ

Decima 02/13/2015 06:35

CONGRATZ!!!

u just revived a year old post for nothing but to prove ur a moron *claps*


All times are GMT +1. The time now is 01:29.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.