Jump to content

Domniq

Premium
  • Posts

    136
  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Posts posted by Domniq

  1. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Here is my speedtree models library (size 2GB, over 2200 spt, 2500 textures). Most of the trees are ready to save in sptCAD3 but remember to save textures as .dds.

    EAuV8Sy.png

    This is the hidden content, please

    I hope it will be usefull for you :)

     

    If you have any question send me a message.

    • Metin2 Dev 78
    • Eyes 11
    • Dislove 1
    • Not Good 2
    • Think 2
    • Scream 1
    • Lmao 1
    • Good 43
    • Love 13
    • Love 93
  2. I've SpeedTree4.2SDK but it's inside of encrypted rar file from 2009. I found that year ago on google code project and somebody share it. I've also sended him email for a password but he don't remeber.

    tXOko1B.png

    Here is link to encrypted rar archive, you can only see files inside but to extract you need password. So if somebody manage to crack/decrypt it would be nice.

    This is the hidden content, please

    • Metin2 Dev 5
    • kekw 1
    • Eyes 1
    • Good 3
    • Love 3
  3. On 7.09.2016 at 0:54 AM, Crystal™ said:

    Is the revision 28k just with the 3D models that a 2010 client has?If I try to compile a binary from kraizy's tgz would the bin work or it will need some upgrades?

    The client is from end of 2010 and models also. If you compile your own binary it will work but you have to add 2 lines to PythonLauncher.cpp:

        PyModule_AddIntConstant(builtins, "True", 1);
        PyModule_AddIntConstant(builtins, "False", 0);

    Or just use the source that I included in client it already has it.

    • Love 1
  4. On 14.08.2016 at 6:39 PM, raihan3 said:

    thanks if it was english then would be much better by the way thanks

    Spoiler

    3VaLEhg.png

    change your locale.cfg and replace selected files in locale on image with files from gameforge servers and add/replace those lines:

    Spoiler

     

    locale_game.txt:

    add: TOOLTIP_SELL_PRICE    [Sales price]

    replace: REFINE_COST    Costs for Advancement: %s Yang

    locale_interface.txt:

    add: OPTION_SHADOW    Shadows

    replace: HELP_SCREEN_CAPTURE    Save Screenshot: Print (will be saved in file "%s\screenshot")

     

    • Dislove 1
  5. Hey,

    Here is my script for generating property for Trees, Buildings, Effects and Dungeon Blocks to make work more efficent.

    - crc32 as ObjectID (same as in WE)

    - skip LOD file (.gr2)

    - adjustable shadow output (Buildings)

    - auto .mdatr attachment (Collisions for *.gr2)

    Script:

    Spoiler
    
    import os
    import glob
    import binascii
    
    prb = "gr2 >> object"
    prd = "gr2 >> dungeon block"
    prt = "spt >> tree"
    pre = "mse >> effect"
    bshadow = ''
    filetype = [prb, prd, prt, pre]
    filename = []
    filepath = []
    crc32 = []
    filecount = 0
    currentfile = 0
    count = 0
    
    def clear():
        os.system('cls')
    
    
    def getcrc32(f):
        fo = open(f, 'rb').read()
        return binascii.crc32(fo) % (1 << 32)
    
    
    def properties(fileext, propertyext, propetytype):
        global currentfile, filecount, count
       
        for srcfn in glob.glob('*%s' % fileext):
            if '_lod_0' in srcfn:  # skip LOD files
                pass
            else:
                filename.append(srcfn)
                filepath.append((os.getcwd() + '\%s' % srcfn).replace('\\', '/').lower())
                filecount += 1
    
        for i in range(0, len(filename)):
            prop = open(filename[i][:-4] + propertyext, 'w')
            prop.write('YPRT\n')
            crc32.append(getcrc32(filename[i]))
            prop.write(str(crc32[i]) + '\n')
            if propertyext == '.prb':
                prop.write('buildingfile\t\t"%s"' % filepath[i].lower())
                if os.path.exists(filename[i][:-4] + '.mdatr'):
                    prop.write('\nisattributedata\t\t"0"')  # include .mdatr
            if propertyext == '.prd':
                prop.write('dungeonblockfile\t\t"%s"' % filepath[i].lower())
            if propertyext == '.prt':
                prop.write('treefile\t\t"%s"' % filepath[i].lower())
            if propertyext == '.pre':
                prop.write('effectfile\t\t"%s"' % filepath[i].lower())
            prop.write('\npropertyname\t\t"%s"\n' % filename[i][:-4])
            prop.write('propertytype\t\t"%s"\n' % propetytype)
            if propertyext == '.prb' and bshadow == 'T':
                prop.write('shadowflag\t\t"1"\n')  # include shadow
            if propertyext == '.prt':
                prop.write('treesize\t\t"1000.000000"\n')
                prop.write('treevariance\t\t"0.000000"')
    
            print "(%d/%d) %s | crc32: %d" % (currentfile + 1, filecount, filename[i], crc32[i])
            currentfile += 1
            count += 1
    
          
    def option(ext):
        global bshadow
    
        if ext == prb:
            outputshadow = raw_input("Include shadows? (T/N): ")
            if outputshadow == 't' or outputshadow == 'T':
                bshadow += 'T'
            properties('.gr2', '.prb', 'Building')
        if ext == prd:
            properties('.gr2', '.prd', 'DungeonBlock')
        if ext == prt:
            properties('.spt', '.prt', 'Tree')
        if ext == pre:
            properties('.mse', '.pre', 'Effect')
    
    
    def menu():
        print "1) ", prb
        print "2) ", prd
        print "3) ", prt
        print "4) ", pre
        select = raw_input("Choose option: ")
        if 5 > int(select) > 0:
            clear()
            print "You have chosen: ", filetype[int(select) - 1]
            option(filetype[int(select) - 1])
        else:
            clear()
            menu()
    
    
    menu()
    print "Generated", count
    raw_input("Press any key to exit")

    Video:

    222557xYQMvJt.gif

     

    How to use:

    1. Install the newest python 2.7.x

    2. Paste script into text editor and save with .py extension

    3. Put that script in directory with objects

    4. Right click on script -> open as -> python.exe

     

     

    • Metin2 Dev 4
    • Love 1
    • Love 15
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.