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.

[PC] Kao the Kangaroo .bin files

Featured Replies

  • Author
  • Localization

Bogus, posted Mon Jun 25, 2018 7:14 pm (36209)


Hello all, i'm new here.
Does anyone know how to import models from Kao the Kangaroo?
Maybe DGlorio?
Here is link to demo:
http://download.gamesurf.tiscali.it/demo/kao_demo.zip
and Blender script, some specification:
Code:
import Blender
import struct

def load_bin(filename):

   scn = Blender.Scene.GetCurrent()
   if scn == None:
      return "No scene to import to!"

   file = open(filename, 'rb')

   scn.objects.selected = []
   mesh = Blender.Mesh.New("name")
   meshOb = scn.objects.new(mesh)

   file.seek(12,0)

   numobjects = struct.unpack('L', file.read(4))[0]

   file.seek(16,0)

   numFaces = struct.unpack('L', file.read(4))[0]

   file.seek(76,0)

   numVerts = struct.unpack('L', file.read(4))[0]

   file.seek(120,0)

   faces = []
   for i in xrange(numFaces):
      x = struct.unpack('H',file.read(2))[0]
      file.read(2)
      y = struct.unpack('H',file.read(2))[0]
      file.read(2)
      z = struct.unpack('H',file.read(2))[0]
      file.read(2)
      file.read(2)
      file.read(2)
      faces.append([x,y,z])

   verts = []
   for i in xrange(numVerts):
      verts.append(struct.unpack('fff', file.read(3*4)))
      file.read(4)

   mesh.verts.extend(verts)
   mesh.faces.extend(faces)

Blender.Window.FileSelector(load_bin, 'import kao bin', '*.bin')

and script to quickbms for kao.pak:
Code:
get pEOCDR asize
math pEOCDR -= 12
goto pEOCDR

get CDR_NUM long
get CDR_PTR long
idstring "T8FM"   ## assumed magic

goto CDR_PTR

for i = 1 to CDR_NUM

  getdstring R_NAME 80
  get R_POS long
  get R_SIZE long

  log R_NAME R_POS R_SIZE

next i

If Windows is 64-bit, you need to download is3Engine.zip http://toastytech.com/files/Is3Engine.zip, put setup32.exe and launch.
  • Author
  • Localization

BCGhost, posted Wed Jun 27, 2018 2:36 pm (36227)


You should have uploaded the pak files instead of expecting people to install the game for your sake.
  • Author
  • Localization

Anexenaumoon, posted Thu Jun 28, 2018 9:00 pm (36276)


Ironically enough, I was just looking at this format the other day... Glad someone got to it!!! However, I don't think this supports UV-coordinates at all
  • Author
  • Localization

Bogus, posted Thu Jun 28, 2018 9:37 pm (36278)


Is kao_tools.exe on xentax forum, only animation not convert, convert .bin file to .obj, but latest version crash, even with xp compatibility mode, this model supports UV mapping, in this models are numbers of objects, numbers of faces, numbers of motions for animation, next onknown values some commands?
0x4c offset, for each object, numbers of vertices, unknown values maybe group number, object name 32 bytes, unknown values 4 bytes, next faces data, vertices data, next unknown values, next animation data, next maybe UV mapping data.
I write import script for noesis, but is not easy, because null bytes are in each vertices and faces.
edit:
Mistake, i discovered, that faces are on end of file with UV mapping, before vertices i not know what is this.
edit2:
On begin file are faces with unknown values before vertices, on end of file are faces with UV mapping in groups.
Guest
This topic is now closed to further replies.

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.