Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.
Zero Tolerance for Disrespect

warhammer 40000 sanctus reach model .s4f

Featured Replies

  • Supporter
from inc_noesis import *
import noesis
import rapi
import os

def registerNoesisTypes():
    handle = noesis.register("Warhammer 40000 - Sanctus", ".s4f")
    noesis.setHandlerTypeCheck(handle, noepyCheckType)
    noesis.setHandlerLoadModel(handle, noepyLoadModel)
    noesis.logPopup()
    return 1
        
def noepyCheckType(data):
    bs = NoeBitStream(data)
    if len(data) < 20:
        return 0
    return 1
        
def noepyLoadModel(data, mdlList):
    ctx = rapi.rpgCreateContext()
    bs = NoeBitStream(data)   
    bs.read(1104)
    numMeshes = bs.readUInt()
    bs.read(364)
    Underline = "_"
    Increment = -1
    MeshNum = 0
    baseName = rapi.getExtensionlessName(rapi.getLocalFileName(rapi.getInputName()))
    for i in range(0, numMeshes):
        bs.read(368)
        VtxCount = bs.readUInt()
        IdxCount = bs.readUInt()
        bs.read(56)
        VertexBuffer = bs.readBytes(VtxCount * 12)
        NormalBuffer = bs.readBytes(VtxCount * 36)
        UVBuffer = bs.readBytes(VtxCount * 8)
        IndexBuffer = bs.readBytes(IdxCount * 12)
        IndexEnd = bs.tell()
        IndexCount = int(IdxCount * 3)
        Increment += 1
        MeshNum = Increment
        Digformat = "{:04d}".format(MeshNum)
        rapi.rpgSetName(baseName + Underline + Digformat)
        rapi.rpgBindPositionBufferOfs(VertexBuffer, noesis.RPGEODATA_FLOAT, 12, 0)
        rapi.rpgBindUV1BufferOfs(UVBuffer, noesis.RPGEODATA_FLOAT, 8, 0)
        rapi.rpgBindNormalBufferOfs(NormalBuffer, noesis.RPGEODATA_FLOAT, 36, 0)
        rapi.rpgCommitTriangles(IndexBuffer, noesis.RPGEODATA_UINT, IndexCount, noesis.RPGEO_TRIANGLE)
    mdl = rapi.rpgConstructModel()
    mdlList.append(mdl)
    return 1

 

  • Author

I tried the script but it doesn't work

mgfghfh.JPG

  • Author

I solved the problem, it was just that I had an old version of noesis 

  • Author

I now have the problem that the templates I am interested in are in archive file which I have no idea how to open it, I opened a discussion to see how I can do it 

 

 

  • 3 weeks later...

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.