Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: CodeBattle - DefenseTower
Post: RE: CodeBattle - DefenseTower
https://github.com/colobot/colobot/issues/941 |
|
melex750 |
Help
|
4 |
10,830 |
08-05-2018, 04:47 PM |
|
|
Thread: MazesOnMars userlevel
Post: MazesOnMars userlevel
Each maze is generated randomly when the level starts.
Download it here: MazesOnMarsV01.zip 3.8 MB |
|
melex750 |
Workshop
|
1 |
5,749 |
02-21-2018, 11:44 PM |
|
|
Thread: CBOT programs and example code
Post: CBOT programs and example code
Spoiler: QuickSort recursive sorting algorithm
Code:extern void object::TestQuickSort()
{
int array[] = {4,1,9,2,7,5,8,6,9,0,5,3,7,2,8,0,4,6,1,3};
Quic... |
|
melex750 |
Workshop
|
0 |
5,500 |
06-28-2017, 10:38 AM |
|
|
Thread: [solved] No problem
Post: RE: A problem ? (maybe) with busy ft ?
You are missing the 'sens' parameter.
Code:radarall ( cat, angle, focus, min, max, sens, filter );
// try this
radarall ( Converter, 0, 360, 0, 500, 1, FilterFriendly); |
|
melex750 |
Help
|
6 |
15,957 |
12-22-2016, 02:10 PM |
|
|
Thread: Finding Powercells that needs charging
Post: RE: Finding Powercells that needs charging
@clop1000 ,
This program can get the holder of any object that can be carried.
Code:extern void object::Example()
{
// list of objects that can be carried
&... |
|
melex750 |
General
|
13 |
37,982 |
07-05-2016, 11:03 PM |
|
|
Thread: Create userlevels faster
Post: RE: Create userlevels faster
Each one of these should work in that spot.
int[] types;
int[] types = null; // doesn't work with 0.1.7b but it's been fixed since then.
int types[];
int types[] = null; // crashes with 0.1.7b but... |
|
melex750 |
Workshop
|
7 |
22,208 |
04-23-2016, 07:09 PM |
|
|
Thread: Create userlevels faster
Post: RE: Create userlevels faster
As far as I know, the "Error creating object type 213" will only happen with 0.1.6 version of the game.
This can't be fixed in the userlevel, but it works for me with all newer versions.
I have see... |
|
melex750 |
Workshop
|
7 |
22,208 |
04-20-2016, 01:09 AM |
|
|
Thread: 40 random reliefs for level authors
Post: RE: 40 random reliefs for level authors
A good place to find textures.
http://opengameart.org/textures |
|
melex750 |
Workshop
|
11 |
31,055 |
04-04-2016, 03:13 AM |
|
|
Thread: What object is this cross in a circle?
Post: RE: What object is this cross in a circle?
The "f" is used to express a literal float value in C++, it doesn't exist in CBOT.
Code:// orientation is the direction the object is facing. 0-360
// 0 and 360 == east
// 90 == north and 180 == west
... |
|
melex750 |
General
|
12 |
28,275 |
03-19-2016, 07:20 AM |
|
|
Thread: Radius param for search()
Post: RE: Radius param for search()
This is similar to what I was doing at first, but it was
very slow to call such a function hundreds of times per minute.
Which then made creating a path finding algorithm pretty pointless.
The ga... |
|
melex750 |
Game Engine & General Talk
|
4 |
13,221 |
03-19-2016, 06:12 AM |
|
|
Thread: Falling on land when over trees - how to prevent?
Post: RE: Falling on land when over trees - how to preve...
Code:int Graviplant = 715;
object obj = radar(Graviplant);
if (distance2d(this.position, obj.position) <= 32)
{
message("ve... |
|
melex750 |
General
|
15 |
36,218 |
03-18-2016, 07:38 AM |
|
|
Thread: How to get status of bot's armor?
Post: RE: How to get status of bot's armor?
shieldLevel or this.shieldLevel < 1.0 means the bot is damaged. The bot is destroyed near/at 0.0.
Running the program while in the editor (arrow button), will show a list of bot's status variables ... |
|
melex750 |
General
|
3 |
9,398 |
03-17-2016, 06:15 AM |
|
|
Thread: Radius param for search()
Post: RE: Radius param for search()
I like the idea of using all radar parameters.
But using angle and focus might be confusing.
Maybe if the search function has an orientation of it's own,
direction("search position") could be relati... |
|
melex750 |
Game Engine & General Talk
|
4 |
13,221 |
03-17-2016, 12:42 AM |
|
|
Thread: Radius param for search()
Post: Radius param for search()
Would be nice for path finding & detecting objects near a point away from the robot.
search(cat[, pos][, radius]);
And maybe:
object items[] = searchall(cat[, pos], radius);
I actually a... |
|
melex750 |
Game Engine & General Talk
|
4 |
13,221 |
03-16-2016, 12:20 PM |
|
|
Thread: Compilation ok (0 errors)
Post: RE: Compilation ok (0 errors)
For reference, my codebattle program + shooter program are currently 46kb, & 9719 tokens.
I broke it into separate programs to be organized and avoid editor bugs(probably fixed already).
That com... |
|
melex750 |
Game Engine & General Talk
|
9 |
23,158 |
02-25-2016, 08:56 PM |
|
|
Thread: 40 random reliefs for level authors
Post: RE: 40 random reliefs for level authors
A special game mode for level editing would definitely be cool. |
|
melex750 |
Workshop
|
11 |
31,055 |
02-25-2016, 01:18 AM |
|
|
Thread: Compilation ok (0 errors)
Post: RE: Compilation ok (0 errors)
The last time I hit the character limit at 701 lines, the editor
cut off at 20637, which I thought was strange, I knew it was set to 20000.
It made my LevelController script look like crap when I had... |
|
melex750 |
Game Engine & General Talk
|
9 |
23,158 |
02-25-2016, 01:13 AM |
|
|
Thread: Compilation ok (0 errors)
Post: RE: Compilation ok (0 errors)
Quote: a better idea on how to use functions from multiple files
That sounds interesting.
Yeah, a real editor that handles multiple files would be nice.
I'm using an external editor with line numbe... |
|
melex750 |
Game Engine & General Talk
|
9 |
23,158 |
02-23-2016, 10:52 PM |
|
|
Thread: Compilation ok (0 errors)
Post: Compilation ok (0 errors)
What's the level of interest for something like this?:
[Image: https://www.dropbox.com/s/4khpx1xw4nz8ty...e.png?dl=1]
Path defaults to ai/ but also uses %cat%, %chap%, and %lvl%
codes, plus two other... |
|
melex750 |
Game Engine & General Talk
|
9 |
23,158 |
02-23-2016, 03:45 AM |
|
|
Thread: 40 random reliefs for level authors
Post: RE: 40 random reliefs for level authors
Right now the program is very raw and difficult to use.
I probably won't share the source code until I finish the basic algorithm,
but I plan to give it a better GUI, real-time editing, and 3D previe... |
|
melex750 |
Workshop
|
11 |
31,055 |
02-23-2016, 03:31 AM |
|
|
Thread: 40 random reliefs for level authors
Post: RE: 40 random reliefs for level authors
Quote: Are any of these suited for a landing spot and spots for buildings?
Good question, thanks for asking.
These reliefs are generated by a program which is a work in progress.
The aim of this pr... |
|
melex750 |
Workshop
|
11 |
31,055 |
02-21-2016, 12:54 PM |
|
|
Thread: Create userlevels faster
Post: Create userlevels faster
With this userlevel: UserlevelHelperV1.zip 840kb
UserlevelHelperV1b.zip 830kb for Colobot: Gold Edition 0.1.7b
You can:
Apply a relief.png from your userlevel or use the one provided.
Randomly p... |
|
melex750 |
Workshop
|
7 |
22,208 |
02-15-2016, 10:53 AM |
|
|
Thread: The LevelController command
Post: RE: The LevelController command
The LevelController (still called MissionController in parserparam.cpp)
object is currently disabled in source.
I temporarily revived it and confirmed that it works, but it is slightly broken.
Th... |
|
melex750 |
Help
|
4 |
12,349 |
01-30-2016, 05:03 PM |
|
|
Thread: 40 random reliefs for level authors
Post: 40 random reliefs for level authors
Free to use and packaged as a custom level for easy previewing.
RandomTerrain.zip 1.5MB 1-20
RandomTerrain2140.zip 1.0MB 21-40
Easy instructions are in the ReadMe.txt file.
Th... |
|
melex750 |
Workshop
|
11 |
31,055 |
01-29-2016, 08:52 PM |
|
|
Thread: The LevelController command
Post: RE: The LevelController command
|
melex750 |
Help
|
4 |
12,349 |
01-29-2016, 06:57 PM |