Jump to content

iap

Community Members
  • Posts

    101
  • Joined

  • Last visited

Posts posted by iap

  1. I understand. So the you'll need a full set of code to handle vector graphics witch does not exist right now. But then maybe a solution would be to implement some kind of smart stretch algorithm on the texture, instead of the normal bicubic (is it?).

    Something like this, for example: http://research.microsoft.com/en-us/um/people/kopf/pixelart/

    This way you can avoid having to load so many variation of the same texture into memory. (it's the memory against performance issue again)

  2. I believe if you run the game with the "-writableRoot" option then all the data gets saved next to the binary, which would make it essentially self-contained. I could be wrong about that though, since I've never tried it.

    Yes it is! :cheers:

    Now to make a portable package is just adding an option to your installer, to put all in one place (without "uninstall" in the registry, and without start menu) and create a batch file with this option.

    Will you be able to do it for the next alpha?

    (and I'm sorry for the delay)

  3. I believe if you run the game with the "-writableRoot" option then all the data gets saved next to the binary, which would make it essentially self-contained. I could be wrong about that though, since I've never tried it.

    I'll check it right away.

    The size of the file is 300mb zip, it extracted to 650mb exe. I tried to upload it again (as attachment) and failed. :unsure:

  4. Hi, I've made a portable release from an installation of 0 A.D.

    I then uninstalled and tried it, while keeping track of unwanted files.

    The game does not leave traces, from what I've seen, except for when it is crashed, and then running it again will delete the unwanted files.

    I couldn't make it save games and changes, witch is not a very good thing, but hey, this is my first attempt to make a portable software.

    I used Cameyo for this, that is why the logo appear in the beginning,

    If someone know about a better virtualization program, I would be happy to know.

    EDIT: darn, I was trying to attach it, but it didn't get it.

  5. [quote name='Ykkrosh' timestamp='1328635940' post='233814'

    As far as I can tell from the documentation and published code, this is currently just a very basic implementation of steering behaviours. (Units have a 1/exp(dist) force away from each other, 1/exp(dist) force away from the nearest obstacle, some perpendicular 'look-ahead' force to avoid running into other units, and some force to the next waypoint, and that's it). The web site makes it look much more interesting than it is :(

    By the way, Is it not a good idea to have the short site pathfinding be actually a steering, like you describe?

    As long as you know there is a way between you and the target, and the long pathfind point to this way, the short pathfing will not initiate pathfind, but just steer to the destination, avoiding obstacles and entities. Of course this approach will only work on short sited pathfind. It will also help very much with the formation, I think, I wrote about it in another thread.

  6. OK it took me some time but I've made a portable package for 0.a.d alpha 8 using Cameyo.

    When alpha 9 will be released, I will make an effort to release a portable package fast enough.

    Where can I upload it to share with you?

    EDIT: I can see that I can upload it to "Development" forum. So I'll open a thread there.

  7. I think it would be nice to have some non interactive characters in the game to provide the appearance of bustling towns and cities. They could walk around, in and out of buildings, and of course flee in terror when a raiding enemy approaches :D It wouldn't add anything to gameplay, but it might be fun eyecandy to watch.

    Yes yes! (but only if it will not have that much impact on the performance)

  8. Phillip, I just want to add that your posts are very interesting and informative to me, and that's beside the improvement to the game itself. :D

    Did you look at other Open Source games like glest and warzone2100 to see how they handled the pathfinding?

    Although Warzone2100 is somewhat different in this sense from 0 a.d, glest is pretty similar, and I know they both had lots of problems with their own pathfinding.

    If you want and it's relevant, I can do a small research in their (and other's) forums, to see if they thought of something that can find the path to your pathfinding problems.

    (oh, and by the way, there is a "glitch" in the pathfinding that makes females that go to get resources bump into females that returns with resources and they both start a pretty "let me pass" dance. I love it! Don't fix it, please. :P It actually happens to me in reality all the time :brow:)

  9. I would like to second the planning board approach, where you can order multiple attacks at the same time.

    Maybe this doesn't have to be in "pause" mode, but even in real time. I mean, the same way that I can shift+click to order multiple commands to the same unit, maybe a different key or a toggle button will enable me to select another unit (or group) to give them different multiple commands, and by pressing the "go" button, or releasing the other key - each of them will take a different path, some in front and some from behind and so on.

  10. Thanks for the replies.

    I understand your concern about maps would not be strategic, or even playable. That is kind of a risk, because they can be both, it's very random. Actually my first drive to make this kind of RMS was just because it was interesting, I wasn't thinking about strategic advantages. I understand that these kind of maps could be for only specific kind of play, or even players.

    By the way, I wasn't aiming for "bryce style" landscapes. Although it could make some beautiful maps, this is not the goal. With post processing of the data like low flatten, high flatten and quantize (making steps) there would be alot of places that are just flat "playground".

    This method could be implemented even for trees and animal distributions, or just using the Noise for this.

    About Atlas: I think it would be an awesome tool if atlas could run an RMS script and generate the map. First, this would be a great way to debug and tweak maps, second, this could give map builders the opportunity to not build a map from scratch (something that made me just give up on map making lots of times).

    Also if there was a way to make interface to change some parameters of the script in the map selection screen, this will benefit all maps and make them very costumizable (according to the script writer's wish, of course)

    About the javascript...

    Well it's been more then 5 years since the last time I wrote prototype style classes (Flash ActionScript 1) without automatic completion and compiler errors, but I tried to do something, without meaningful results.

    Here is the code, it's the basic class but it doesn't generate anything useful right now, just a blank array:


    function average(vaules:Array) {
    var result = 0;
    for (var i = 1; i < values.length; i++) {
    result = result + values[i];
    }
    return result / values.length
    }

    /////////////////////////////////////////////////////////////////////
    // The Diamond-Square Algorithm
    // by iap
    // according to the dscription in this site: http://www.gameprogrammer.com/fractal.html#diamond
    // Class representing 2D plasma generated from a plasma fractal generator, using diamond mid point
    //
    /////////////////////////////////////////////////////////////////////

    //params:
    // iterations: how many iterations to the plasma. This eventually sets the size of the grid (int 1..maximum memry)
    // smooth: how smooth will the plasma be. the higher the number, the less smoth it will be (float 0..1)
    // quantize: post proccessing the plasma to make "steps" (int 0 - no quantize, 1..100)
    // lowCut: post proccessing the plasma to flatten anything below this value (float 0..highCut)
    // highCut: post proccessing the plasma to flatten anything above this value (float lowCut..1)
    function Plasma(iterations, smooth, quantize, lowCut, highCut)
    {
    iterations = int(iterations);
    this.iterations = iterations;
    this.grads = new Array(iterations);
    this.smooth=smooth
    this.quantize=quantize
    this.lowCut=lowCut
    this.highCut=highCut

    // creates the array
    for (var i=0; i<this.grads.length; i++) {
    this.grads[i] = new Array(iterations);
    }

    this.populateGrads(1, 0,0,this.grads.length-1,this.grads.length-1);

    // ok I got stuck when trying to post proccess
    //this.postProccess();
    }

    // return the average values of the four corners of the square + smooth
    Plasma.prototype.getFullAverage = function(x, y, w, h) {
    return avrage([this.grads[x][y],this.grads[x][y+h],this.grads[x+w][y],this.grads[x+w][y+h]]) + (randFloat()-0.5)*this.smooth;
    }

    // return the average values of the two cells of the square + smooth
    Plasma.prototype.getAverage = function(x1, y1, x2, y2) {
    trace("av: "+[x1, y1, x2, y2,this.grads[x1][y1],this.grads[x2][y2]]);
    return avrage([this.grads[x1][y1],this.grads[x2][y2]]) ;//+ (randFloat()-0.5)*this.smooth;
    }

    //a recursive function that creates the plasma in the array in "diamond square" thechnic
    // four corner values are selected randomly, the recursively avarages are claculated with a "variation"
    //params:
    // type (1 - for squares, 0 - for diamonds)
    // x, y, w, h the coordinates and dimentions of the square
    Plasma.prototype.populateGrads = function(type, x, y, w, h) {
    trace("populate grads "+[type,x,y,w,h]);
    var fw = int(w/2);
    var fh = int(h/2);
    if (type == 1) {
    // square
    this.grads[x][y] = randFloat();
    this.grads[x][y+h] = randFloat();
    this.grads[x+w][y] = randFloat();
    this.grads[x+w][y+h] = randFloat();
    this.grads[x+fw][y+fh] = randFloat();
    } else {
    // diamond
    this.grads[x+fw][y] = this.getAverage(x,y,x+w,y);
    this.grads[x+w][y+fh] = this.getAverage(x+w,y,x+w,y+h);
    this.grads[x+fw][y+h] = this.getAverage(x,y+h,x+w,y+h);
    this.grads[x][y+fh] = this.getAverage(x,y,x,y+h);
    this.grads[x+fw][y+fh] = this.getFullAverage(x,y,w,h);
    }
    if (w == 1 && h == 1) {
    return;
    }

    // because all the "squares" where defined by the centers avarege calculations,
    // the olly place to use the "square" method is at first run
    this.populateGrads(0,x,y,fw,fh);
    this.populateGrads(0,x+fw,y,fw,fh);
    this.populateGrads(0,x,y+fh,fw,fh);
    this.populateGrads(0,x+fw,y+h,fw,fh);
    trace("---");
    }
    // Utility function used in both noises as an ease curve

    When trying to use it (draw the grid in flash) well.... it seems that all the average function just return NaN.

    Unfortunately I don't have much time to work on it, but when I do - I give it a shot.

    (And I apologize for my English...)

  11. Hi guys.

    I don't know if this comes here of in the modification forum, you may move this topic.

    I've noticed that there are lots of new RMS lately, witch is great. But most, if not all of the scripts are actually a random variation on a predefined map structure.

    My idea is to build a random map generator that will produce a random map, in a seance of a random terrain and randomly (even of not equally) distributed resources, trees, animals and even factions.

    I was looking briefly at the random maps folder, and seen there a very useful little class called Noise2D witch is used widely in the scripts for distribution of heights, terrain, etc...

    My idea was to use something called Plasma Fractal, or more particularly, an algorithm called "The Diamond-Square Algorithm", as described here: http://www.gameprogrammer.com/fractal.html#diamond.

    This will produce a data that looks close to this:

    heightmap.jpg

    This plasma cloud can be very different in density, change and quantization (it can have "steps" of greys, instead of full range grey scale). This data can be translated to map data in these manners:

    * For height - just use it as it is: black is low and white is high. can have a random water level, witch can make big or small lakes.

    it can be quantized so instead of lots of hills and valleys, there would be ledges in witch buildings can be built.

    It can be capped from top or bottom, making a flat land with mountains or flat land with valleys.

    * For trees and terrain distribution a generated plasma can be "threshold" so only areas that have value above some level will get trees.

    If there is an option for this, the interface can support inputting values for several options, like mountain heights density and so on

    I want to know what you think about it. Is this idea even relevant? I would like to try and build this, but I need some guidance to start.

    Thank you.

  12. Here Are the errors (a looong list, but the two top lines repeat to the end):

    WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 102 reference to undefined property this.path[0][0]

    WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 102 reference to undefined property this.path[0][1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216 reference to undefined property this.path[0][0]

    WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216 reference to undefined property this.path[0][1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216 reference to undefined property this.path[0][0]

    WARNING: JavaScript warning: simulation/ai/qbot/attackMoveToLocation.js line 216 reference to undefined property this.path[0][1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 3 reference to undefined property b[0]

    WARNING: JavaScript warning: simulation/ai/common-api/utils.js line 4 reference to undefined property b[1]

    I took a look at the code.

    This is the line with the error:

    pending.move(this.path[0][0], this.path[0][1]);

    I guess a quick fix will be to check if the path exist just before calling this method, then investigating why in the first place it tries to go to an undefined path.

    So looking at some line above I think (and it's a wild guess without knowing the context) that this line (two lines above):

    	pathsToEnemy = [this.targetPos];

    Should be this:

    	this.paths = [this.targetPos];

    Hope this helps

  13. I tried to copy it in the maps folder inside "public.zip" file, but I couldn't see it.

    Weirdly I could see a random map script i put in the right folder in this zip...

    The screenshot itself looks pretty interesting.

  14. Hi, I really love this generated map!

    It's interesting, very atmospheric and just beautiful.

    I loved the huge amount of forest witch I can get lost in, or have to plan my moves to pass it or build on it.

    Sadly I couldn't play for long because I got millions of JS errors (I think it's about the pathfinding) and the game started to lag like it never did before.

    What I would like to suggest is making slopes a little bit more gradual, and even get some randomness in there, because now these holes and hills doesn't look so natural.

    Keep on making maps :)

  15. Making an Iso option, with restrictions on camera and buildings rotation (45 degree) would change the look and feel completely.

    There are some open source games that has the option to change the game's look and feel just by modifing parameters in the render engine (Smokin Guns, for example, has the option to make it look like a comics style).

    I love both FOVs the same, and it would be cool to switch :)

  16. I have another suggestion:

    Is there a plan to include schools or some kind of tech research? That way the civilizations will evolve slowly.

    Creating schools can train more professional fighters, or other types of fighters. Maybe schools can create professors that will give bonuses to training times or ballistic accuracy.

  17. Thank you for the replay.

    A full set of units bonuses according to sun's location is a lot of work. But I was thinking for start that only the light will change.

    I was looking at the code, and found in the class "LightEnv.cpp" these functions:

    void CLightEnv::SetElevation(float f)

    void CLightEnv::SetRotation(float f)

    Now isn't this just a matter of updating them on a frame basis? Or even ones per second or once per 10 seconds?

    P.S. The code is brilliantly written. I'm not a c++ programmer, butI could figure my way in the code quite easily (To change it, of course, is a different story). Thumbs up for the programmers :cheers:

×
×
  • Create New...