Search results

  1. A

    Terrain (physics/normal system) struct leaking problem

    yep i have started using kingkings method now
  2. A

    Terrain (physics/normal system) struct leaking problem

    Lol great idea. I didn't even think of doing that ;p ,im gonna use that in my map straight away lol...
  3. A

    Terrain (physics/normal system) struct leaking problem

    yeh z wasnt working, but i dont really need it ;p your system is awesome, for some reason my system seems to slow down real quick at uphill slopes...
  4. A

    Terrain (physics/normal system) struct leaking problem

    heres an example using the system http://www.epicwar.com/maps/120400/ and ill post code below too. i apologize in advance for the monocode, tabs not working in the relpy window thing... function periodic takes nothing returns nothing...
  5. A

    Terrain (physics/normal system) struct leaking problem

    looks like its working alot better now with this code :) local unit u = gg_unit_hfoo_0000 //testing unit local real x = GetUnitX(u) local real alpha = 0 // angle between normal and z axis local real mg = 98 //mass*gravity = 9.8*10 local real d // distance local real y = GetUnitY(u) local...
  6. A

    Terrain (physics/normal system) struct leaking problem

    edit - oh yeah you are right, instead of 90-alpha it should be pi/2 - alpha......
  7. A

    Terrain (physics/normal system) struct leaking problem

    Thanks Prozix for the help, i think i understand now and i will try to recode/make a new vector system that will either add the normal + gravity vectors together, or calculate the resultant vector and add that, which ever one works better. will post up tomorrow afternoon... time to get some sleep :p
  8. A

    Terrain (physics/normal system) struct leaking problem

    I dont quite understand what you are doing here. Shouldn't the 90-alpha be PI - alpha? since you are using tan and not TanBJ() and using radians would make more sense.
  9. A

    Terrain (physics/normal system) struct leaking problem

    yes you are right and that's what i have done :p
  10. A

    Terrain (physics/normal system) struct leaking problem

    This part here finds the normal local xyz a = xyz.define(x,y+accuracy) //creating 3 vertices at (x+0,y+30),(x+30,y-30) and (x-30,y-30) local xyz b = xyz.define(x+accuracy,y-accuracy) // to make a triangle local xyz c = xyz.define(x-accuracy,y-accuracy) // and then find the normal of the...
  11. A

    Terrain (physics/normal system) struct leaking problem

    Hi guys, Main Problem... Creates more (xyz) structs than it destroys. therefore errors with unable to allocate id to object after count (global integer) reaches 18,000. Background info and minor problems... This system i made is meant to simulate a circular object on a slope, so it rolls...
  12. A

    WOW Recount-Like GUI dps meter

    not sure of any examples but you would have to trigger all of your hero abilities and use a damage detection system and then tally each individual damage event for each hero/player. There are lots of damage detection systems you can use under systems in these forums.
  13. A

    Reducing file-size on song?

    import the song into 'audacity' a free audio conversion/editing program and then export as mp3 and lower the bitrate or quality.
  14. A

    Save/Load Code Idea

    there are programs such as "super saver"(<-- not 100% sure its its called that) and other programs that export ingame player/game messages into a txt file. Therefore it is possible.
  15. A

    IJass pre-release, ways to improve?

    being able to create a trigger in game would be pretty awsome....event --> condition --> action kinda thing... now that i think about it, perhaps a built in function that will show all the code in a function/trigger in game and its links to other functions and variable use data too
  16. A

    Long Black Screen After clicking 'Ok' on scores

    I too have also had this problem before... i reckon its something to do with leaks/periodic events but im not exactly sure. My suggestion would be to try converting the map from vjass to jass and/or exporting and importing maps data into a new non-newgen or weu created map.
  17. A

    Changing a units attack type

    I reckon you should create multiple units of diferent types, this process can be simplified if you use Jass New Gen's object merger which will allow you to basically create your units in the trigger editor by typing a script for each unit, this is what i did when i wanted to make like 50 creeps...
  18. A

    How can I make a gravity/pull spell?

    you might wanna try using SetUnitX(unit) and SetUnitY(unit) to move your units so if you want them to move towards a given angle a which should be angle between target and caster you should run this mulitple times call SetUnitX(u) = GetUnitX(u) + SPEED*CosBJ(a) and SetUnitY(u) = GetUnitY(u) +...
  19. A

    Snippet CSA - Custom Struct Allocator

    he has a good point....
  20. A

    storing string in clipboard is it possible

    The black road rpg had something like what you want, but it only works for TBR, there is another program that copies all ingame chat into a notepad and i think Banlist does that too but im not sure. I will reply later with the programs name cause i cant find it atm. Also i think its impossible...
Top