Jump to content

Au3Irrlicht 2.0


JRowe
 Share

Recommended Posts

There is a whole community for modding the game which is where I found the tools to extract the models. Also Troika, the company that made the game went out of business shortly after making the game back in '05. (which is a shame because a sequal or proffessionally made online game would have been awsome)

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Updating my drivers fixed most of my problems but still some examples doesnt work..... I dont think 32bit dlls are problem, I pöay some 32bit games and they work nicely.

on my 64bit system, I have to be sure to right click the script and select run as x86 even though I have the #AutoIt3Wrapper_UseX64=N at the top. Also make sure the 4 dlls and includes are in the right spot.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

There is a whole community for modding the game which is where I found the tools to extract the models. Also Troika, the company that made the game went out of business shortly after making the game back in '05. (which is a shame because a sequal or proffessionally made online game would have been awsome)

So you will not post out from jail someday, great :graduated:

About 64bit: so this #directive is only for compiled scripts? If there is no way to automatically set 32bit also for F5ing I could at least add a check into IrrStart ... If you can figure something out about doing this automatically (you are the 64bit man :( ), pls let me know!

Hi E1M1, it's not a problem with 32bit dll's but with accessing them from 64bit version of au3. So pls try kaotkbliss tip and give some feedback if it works, thanks!

Link to comment
Share on other sites

...

Hi BiliyomKi, unfortunately V2 is not working for me (your script uses '1.ms3d' I do not have). Maybe you can provide a complete package with e.g. \media2 for those files not included in standard \media?

...

1.ms3d is just nothing, you can put anything you want, its empty node(i think :( ) :graduated:

An AutoIT user.
Link to comment
Share on other sites

@linus

1.ms3d shud b the same (or similar) thing like front-back(NODE).3ds

Points = 0

Edges = 0

Faces = 0

Memory = 0 bytes

Size = 42 bytes

anyone can change the script line to use this file or he can create one in some other program and name it '1.ms3d', it don't really matter what they use

front-back(NODE).rar

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

1.ms3d is just nothing, you can put anything you want, its empty node(i think :( ) :graduated:

Hi BiliyomKi & bogQ,

was mainly a remark because posted V2 will not work for others when refering to non-existing ressources. If any mesh can be used, why not

;FOR 'Third Person Shooter' LOOK
$FrontNode = _IrrAddMeshToScene( _IrrGetMesh("../media/wedge.obj"))
$BackNode = _IrrAddMeshToScene( _IrrGetMesh("../media/wedge.obj"))

then everything is working at once.

BTW: much nicer movement in V2 - looking forward to V3 :D

Link to comment
Share on other sites

Hi, for an empty scene node you could use

$FrontNode = _IrrAddEmptySceneNode()
$BackNode = _IrrAddEmptySceneNode()
It's not documeted in the v2.04 help file, but the _IrrAddEmptySceneNode function is there and working in the scene include.

(Have updated the svn with header info and help example, so hopefully it'll be in the next release)

Cheers

Edit:Just for kicks here's an example using an empty scene node

#include "au3Irrlicht2.au3"

Global $hSphereNode, $hMD2Node, $hEmptyNode

_IrrStart()

$hSphereNode = _IrrAddSphereSceneNode(8, 32)
_IrrSetNodeMaterialTexture($hSphereNode, _IrrGetTexture(".\media\skydome2.jpg"), 0)
_IrrSetNodeMaterialFlag($hSphereNode, $IRR_EMF_LIGHTING, $IRR_OFF)
$hMD2Node = _IrrAddMeshToScene(_IrrGetMesh(".\media\zumlin.md2"))
_IrrSetNodeMaterialTexture($hMD2Node, _IrrGetTexture(".\media\zumlin.pcx"), 0)
_IrrSetNodeScale($hMD2Node, 0.1, 0.1, 0.1)
_IrrSetNodePosition($hMD2Node, 11.2, 0, 0)
_IrrSetNodeRotation($hMD2Node, 0, 80, -72)
_IrrPlayNodeMD2Animation($hMD2Node, $IRR_EMAT_RUN)
_IrrSetNodeMaterialFlag($hMD2Node, $IRR_EMF_LIGHTING, $IRR_OFF)

$hEmptyNode = _IrrAddEmptySceneNode()
_IrrAddRotationAnimator($hEmptyNode, 0, 0.6, 0)
_IrrAddChildToParent($hMD2Node, $hEmptyNode)

_IrrAddCamera(0, 20, 0, 0, 0, 0)

While _IrrRunning()
    _IrrBeginScene(0, 100, 200)
    _IrrDrawScene()
    _IrrEndScene()
WEnd

_IrrStop()
I was thinking of using empty scene nodes for bot path finding.. eg: find the nearest empty node and the bot heads to it, while the bot is running to an empty node give him a random choice to look look for another node or continue on to the current node. Rinse lather and repeat... and my bot would be wandering around randomly. For what purpose I have no idea ...lol Edited by smashly
Link to comment
Share on other sites

Here's a Screenshot of my current work in progress :graduated: This part is completely functional and saves all choices to an ini. Eventually that will be moved to an online database though.

*edit*

I wish the quality of the pic was better but I can't figure out how to clear up room on my account.

Edited by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

use http://imageshack.us/

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Actually, after posting how I couldn't figure out how to free up some space, I found where I can go back through more than just the last couple posts. However, I still have to dig through them to find attachments and remove them.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Actually, after posting how I couldn't figure out how to free up some space, I found where I can go back through more than just the last couple posts. However, I still have to dig through them to find attachments and remove them.

Hi, you can use from the Your Profile dropdown top of the page -> My Settings -> Manage Attachments.

There you can see all your attachments, select the checkboxes for the ones you want to remove and hit the Delete Selected button.. 2 secs, walla and done :graduated:

Cheers

Link to comment
Share on other sites

Hi, you can use from the Your Profile dropdown top of the page -> My Settings -> Manage Attachments.

There you can see all your attachments, select the checkboxes for the ones you want to remove and hit the Delete Selected button.. 2 secs, walla and done :(

Cheers

HA! that was easy :graduated:

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

I got movement/zooming set (although I'm not sure if the camera will work in tight spaces so I may need to readjust later. But right now I'm working on some maps to run around on.

I think what a lot of games use is a single large 3d model but since autoit is not as powerful as game specific engines, I can set it up in "sections".

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

I don't suppose there is anything for maps in the unwritten commands (.map, .dxf, .vmf etc.)? I know there is bsp support, but only for quake3. All the bsp's I have are varriants of HL2 maps so I must convert them (first to vmf, then to dxf) which I can then import into 3ds max and hopefully export to a useful format.

I won't know for a while yet because it takes forever to import 1 dxf into 3ds max :(

*edit*

yes, they will export fine into 3DS format, so now I need to figure out the best method for texturing individual rooms in a large building, and individual buildings on a city street.

I would think it can be done in irr edit and exporting again into an irr or irrmesh file but so far I'm not too enthusiastic about irredit as they want 100 euro for it and it can't import autocad dxf files like they say it can.

As far as the source, I'm sure it will be getting posted as I run into problems I need help solving :graduated:

Edited by kaotkbliss

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

Hy!

First i must say that i realy like the new Irrlicht Engine, It work´s realy fine for me!

But I have found one 'Bug', If you use:

'$_ImageSize = _IrrGetTextureInformation(_IrrGetTexture(@scriptdir & "\Image.bmp"))'

Then '$_ImageSize[0]' returns a false width. I now use that:

'$_ImageSize = _IrrGetImageInformation(_IrrGetImage(@scriptdir & "\Image.bmp"))'

this give´s the correct width back.

Also I must say that i try to Convert fonts with the 'FontTool' from the 'bin' dir, but they dont´t work...

Sorry for my bad english;)

Greets from Techmix!

Link to comment
Share on other sites

To me they return identical data on var [0] & [1] i tested it on 3 diffrent pictures with diffrent formats with no problem

'FontTool'

This 'FontTool' is working correctly if the one you have is dmged.

bin dir?!! you mean normal fonts that you have instaled in you windows?

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Thanks for Link!

But I tryed so often with '_IrrGetTextureInformation' with png, bmp and jpg (also different Pics); always the same problem... With '_IrrGetImageInformation' there are no problems...

Greets

[Edit]

...no at the GoogleCode site there is the FontTool somewhere available; You can take a look at this it´s in the 'Irrlicht\bin\' dir.

Edited by Techmix
Link to comment
Share on other sites

Maby you can replicate problem for IrrGetTextureInformation, upload script and picture that your use so that we can replicate that error pls

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...