project-navigation
Personal tools

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - caelum

Pages: [1]
1
Newbie Coding / Re: Are the LUA AI scripts being used?
« on: December 06, 2009, 11:30:50 pm »
Can't say how fast I will be able to look at it, otherwise I would be volunteering more :), but I will see what I can do as I get spare time.

I will just keep posting on this thread as I need help or want to discuss something about it?

2
Coding / Re: Help may be needed from someone who knows Python
« on: November 30, 2009, 02:13:07 am »
I found this application (http://www.fragmosoft.com/) when I was looking for info about MD2 file formats.

It looks like it can happily convert 3ds or obj files to md2. So you could export with blender, then convert with the other applicaiton. It looks like it is shareware.

If it works as advertised then it could be an interim solution for these scripts.

3
Newbie Coding / Re: Are the LUA AI scripts being used?
« on: November 30, 2009, 12:55:06 am »
Sounds like I should look through it and see if I can increase the performance a bit before worrying about improving the AI. LUA looks easy enough to learn that if the speed of using it is acceptable then there will probably be a few people willing to play with them.

4
Newbie Coding / Re: Are the LUA AI scripts being used?
« on: November 27, 2009, 04:30:03 am »
So is there any ability for civilians to carry weapons yet? I am assuming no at the moment, but thought I would ask :).

I think I can live with the slowness as I test out the scripts, it will no doubt be easier if bugs from the sv_threads are not thrown into the mix.

Do you know why it performs so badly?

5
Coding / Re: Help may be needed from someone who knows Python
« on: November 27, 2009, 02:10:06 am »
For the moment just one model that will definately work, and one that fails would be good. A model that is missing a texture map should fail the process.

6
Newbie Coding / Re: Are the LUA AI scripts being used?
« on: November 26, 2009, 10:14:42 am »
I am happy to work on the LUA scripts. It won't be until after I have finished struggling with the Blender import/export scripts though :).

Is the idea to implement something like what the ai diagram that is in SVN currently outlines?

7
Coding / Re: Help may be needed from someone who knows Python
« on: November 26, 2009, 10:11:55 am »
I put the export_md2 script into blender and started converting it.

Once you get past the Python syntax you need to convert to the new Blender API. They have actually made a fairly large number of changes.

I have been able to work out most of them so far by looking through the API documentation. but I am still unsure that the method I am replacing does the same thing. So I will need a number of models to test.

As well as one that should definitely work I will need files that fail the validation for various reasons or need to be adjusted, not centred, not at the right scale, rotated, not made of triangles, etc, etc.

Once we have it working again we can always post it on the blender forums to see if the guys there find any mistakes.



8
Coding / Re: Help may be needed from someone who knows Python
« on: November 26, 2009, 03:34:10 am »
Actually. I am probably better off attempting to port the functionality and leave out the GUI...

9
Coding / Re: Help may be needed from someone who knows Python
« on: November 26, 2009, 03:27:19 am »
Yeah, I should just have to learn how to start it up and run a script that i've created.

From what I gather the API has changed in the new version of Blender. So, for example, any code to create a GUI will need to be redone to match the new API.

As a start I might attempt to re-create the GUI with the new API. Then I will look at porting the actual functionality. I have no idea how difficult this will be, but i'll give it a shot until someone who knows more about it comes along  :).

10
Newbie Coding / Are the LUA AI scripts being used?
« on: November 25, 2009, 11:59:54 pm »
Are civilian.lua and alien.lua the full extent of the AI? or is the c code still doing some of it?

Now that I have compiled the dev version I was going to play around with the AI, I managed to get one of my soldiers stuck between two civilians last time I played it.


11
Coding / Re: Help may be needed from someone who knows Python
« on: November 25, 2009, 09:43:10 pm »
I managed to remove the syntax complaints that Python has with the scripts. But I suspect that is all that the automatic conversion tool does as well, so more will need to be done.

I will have to learn enough about Blender to actually load the scripts and see how they work.

Most of the scripts just need to change the print functions to stop syntax complaints.
So instead of:
Code: [Select]
print ""
it will be
Code: [Select]
print("")

12
Coding / Re: Help may be needed from someone who knows Python
« on: November 24, 2009, 11:29:00 pm »
This seems to be talking about packaging Python with Blender, so you don't have to install it on your own, rather than converting scripts and such.

I am happy to take a look at the Python scripts if you want. I don't know how much help i'll be, but I might be able to modify them.

If it is only a matter of getting them to work with Python 3.0 then it might not be too bad. But if the Blender API has changed then it will be more difficult, since I have no experience with Blender.

13
Coding / Re: Help may be needed from someone who knows Python
« on: November 24, 2009, 02:41:22 am »
I am not a Python expert, but have had a bit of a look at it from time to time.

The differences from 2.x to 3.0 are listed here.

And there is a tool that is supposed to convert 2.x code into 3.0 code, find it at http://docs.python.org/dev/3.0/library/2to3.html#to3-reference

Pages: [1]