Dr Brain wrote: |
You're missing ELVL support. |
Code: Show/Hide r = root(xs*xs + ys*ys)
if r > max: xs = xs * max / r ys = ys * max / r |
Code: Show/Hide newSpeedX = ship.vx + DeltaX newSpeedY = ship.vy + DeltaY curSpeed = Sqr(newSpeedX * newSpeedX + newSpeedY * newSpeedY) If ship.turbo Then If curSpeed > shipprops(ship.Type).MaximumSpeed Then 'speed is now more than maxspeed, reduce speed, keeping same direction newSpeedX = newSpeedX * (shipprops(ship.Type).MaximumSpeed / curSpeed) newSpeedY = newSpeedY * (shipprops(ship.Type).MaximumSpeed / curSpeed) End If Else If curSpeed > shipprops(ship.Type).InitialSpeed Then 'speed is now more than maxspeed, reduce speed, keeping same direction newSpeedX = newSpeedX * (shipprops(ship.Type).InitialSpeed / curSpeed) newSpeedY = newSpeedY * (shipprops(ship.Type).InitialSpeed / curSpeed) End If End If ship.vx = Fix(newSpeedX) ship.vy = Fix(newSpeedY) |
Code: Show/Hide int newVelSq = myShip->vel.x * myShip->vel.x + myShip->vel.y * myShip->vel.y; int maxVel = curSettings.maxVel; int maxVelSq = maxVel * maxVel; if (newVelSq > maxVelSq) { // limit the speed double movingRad = atan2((double)-myShip->vel.y, (double)myShip->vel.x); myShip->vel.x = (int)(maxVel * cos(movingRad)); myShip->vel.y = (int)(-maxVel * sin(movingRad)); } |
Code: Show/Hide atan2(+-0, x) returns +-pi for x < 0.
atan2(+-0, x) returns +-0 for x > 0. atan2(y, +-0) returns -pi/2 for y > 0. |
Samapico wrote: | |
newSpeedX, newSpeedY and curSpeed are all doubles, ship.vx and ship.vy are long integers... |
Samapico wrote: |
Why didn't anyone tell me about that before? :( |
Quote: |
I mean that when i click on line, and then bring my mouse on the map it starts drawin the line automatically and unintentially. thanks for replying . |
Quote: |
I try to pump up the ASSS Wiki as a resource tool for anything advanced in the Subspace world, but there seems to only be around 10 people that touch it.
Feel free to load it up with anything interesting that deals with the Subspace world. Find out something weird about LVZ, LVL, or anything like that, throw it in there. Make a full article about your map editor, include some neat source code that you liked, etc. It is open to anyone, so use it and add things. |
Samapico wrote: |
Bomb damage formula? Anyone has that? It should appear in the bomb damage settings and/or the physics section... |
Code: Show/Hide Float tileset loaded
Float tileset unloaded Float tileset loaded Float tileset unloaded public.lvl @ SaveMap, saving map... C:\Documents and Settings\Scott\My Documents\zone file\maps\public.lvl, SSMECompatible False public.lvl @ SaveMap, bitmap header position: 1 public.lvl @ SaveMap, bfReserved1 set to: 49720 (49720) public.lvl @ eLVL.saveRegionsFromMap, Saving Region(0) at 49733 public.lvl @ eLVL.saveRegionsFromMap, Putting Name at 49741 public.lvl @ eLVL.saveRegionsFromMap, Putting Tiledata at 49749 public.lvl @ eLVLdata.SaveRegionTileData, saving 491 empty rows public.lvl @ eLVLdata.SaveRegionTileData, saving 496 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 33 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 495 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 18 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 478 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 68 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 478 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 23 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 494 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 36 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 494 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 3 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 486 empty rows public.lvl @ eLVL.saveRegionsFromMap, Putting No AW at 49785 public.lvl @ eLVL.saveRegionsFromMap, Putting No Flag Drops at 49793 public.lvl @ eLVL.saveRegionsFromMap, Putting Color at 49801 public.lvl @ eLVL.saveRegionsFromMap, End of region at 49813 - size was 72 public.lvl @ eLVL.saveRegionsFromMap, Saving Region(1) at 49813 public.lvl @ eLVL.saveRegionsFromMap, Putting Name at 49821 public.lvl @ eLVL.saveRegionsFromMap, Putting Tiledata at 49829 public.lvl @ eLVLdata.SaveRegionTileData, saving 517 empty rows public.lvl @ eLVLdata.SaveRegionTileData, saving 480 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 12 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 532 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 9 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 6 empty rows public.lvl @ eLVLdata.SaveRegionTileData, saving 502 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 21 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 501 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 2 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 488 empty rows public.lvl @ eLVL.saveRegionsFromMap, Putting Color at 49857 public.lvl @ eLVL.saveRegionsFromMap, End of region at 49869 - size was 48 public.lvl @ eLVL.saveRegionsFromMap, Saving Region(2) at 49869 public.lvl @ eLVL.saveRegionsFromMap, Putting Name at 49877 public.lvl @ eLVL.saveRegionsFromMap, Putting Tiledata at 49885 public.lvl @ eLVLdata.SaveRegionTileData, saving 533 empty rows public.lvl @ eLVLdata.SaveRegionTileData, saving 502 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 21 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 501 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 2 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 488 empty rows public.lvl @ eLVL.saveRegionsFromMap, Putting Color at 49905 public.lvl @ eLVL.saveRegionsFromMap, End of region at 49917 - size was 40 public.lvl @ eLVL.saveRegionsFromMap, Saving Region(3) at 49917 public.lvl @ eLVL.saveRegionsFromMap, Putting Name at 49925 public.lvl @ eLVL.saveRegionsFromMap, Putting Tiledata at 49933 public.lvl @ eLVLdata.SaveRegionTileData, saving 517 empty rows public.lvl @ eLVLdata.SaveRegionTileData, saving 532 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 12 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 480 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 9 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 497 empty rows public.lvl @ eLVL.saveRegionsFromMap, Putting Color at 49953 public.lvl @ eLVL.saveRegionsFromMap, End of region at 49965 - size was 40 public.lvl @ eLVL.saveRegionsFromMap, Saving Region(4) at 49965 public.lvl @ eLVL.saveRegionsFromMap, Putting Name at 49973 public.lvl @ eLVL.saveRegionsFromMap, Putting Tiledata at 49981 public.lvl @ eLVLdata.SaveRegionTileData, saving 493 empty rows public.lvl @ eLVLdata.SaveRegionTileData, saving 502 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 21 true tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 501 false tiles public.lvl @ eLVLdata.SaveRegionTileData, saving 6 repeated rows public.lvl @ eLVLdata.SaveRegionTileData, saving 524 empty rows public.lvl @ eLVL.saveRegionsFromMap, Putting Color at 50001 public.lvl @ eLVL.saveRegionsFromMap, End of region at 50013 - size was 40 public.lvl @ eLVL.PutELVLData, Rewriting total size: 292 at 49725 public.lvl @ SaveMap, total eLVL size returned: 292 public.lvl @ SaveMap, New bitmap bfSize: 50012 (50012) public.lvl @ SaveMap, BMPData is stored into lvl, starting tile data at 50013 public.lvl @ SaveMap, saving map... C:\Documents and Settings\Scott\My Documents\zone file\maps\public.lvl, SSMECompatible False ***ERROR*** Error 75 (Path/File access error) |
Code: Show/Hide 1/18/2007 8:17:10 PM --- Drake Continuum Map Editor (v2.0.1) starting...
+++ OtherInstance 0 +++ openedMapByArgs False Untitled 1 @ NewMap, path = '' usingDefaultTileset True Untitled 1 @ NewMap, DefaultWalltiles = Untitled 1 @ NewMap, DefaultTileset = Untitled 1 @ InitTileset, tilesetpath= Default usingDefaultTileset True public.lvl @ OpenMap, Opening Map... C:\Documents and Settings\Scott\My Documents\zone file\maps\public.lvl public.lvl @ OpenMap, Tileset found public.lvl @ OpenMap, Bitmap info header: --- Color Depth: 8 --- Size: 304x160 --- BiSizeImage: 0 --- Compression: 0 public.lvl @ OpenMap, Bitmap info header: --- bfType: 19778 --- bfSize: 50012 --- bfReserved1: 49720 (49720) public.lvl @ Openmap, BMPData is read from lvl file public.lvl @ OpenMap, eLVL data found public.lvl @ eLVL.GetELVLData, eLVL header info: --- magic: elvl --- size: 292 --- reserved: 0 public.lvl @ eLVL.GetELVLData, Chunk loaded: REGN (72) at 49733 public.lvl @ eLVL.loadRegionInMap, SubChunk loaded: rNAM (8) at 49741 public.lvl @ eLVL.loadRegionInMap, SubChunk loaded: ¡ê!ï (-299818912) at 49757 public.lvl @ eLVL.loadRegionInMap, SubChunk loaded: Ñ!Ã` (-690151101) at 49765 public.lvl @ eLVL.loadRegionInMap, SubChunk loaded: !Ã`# (-1581060831) at 49773 public.lvl @ eLVL.loadRegionInMap, SubChunk loaded: Ã¥ (1463897714) at 49781 public.lvl @ Openmap, usingDefaultTileset False public.lvl @ SearchWallTiles, Searching for: C:\Documents and Settings\Scott\My Documents\zone file\maps\public.lvl (walltilepath: C:\Documents and Settings\Scott\My Documents\zone file\maps\public.wtl) public.lvl @ InitTileset, tilesetpath= C:\Documents and Settings\Scott\My Documents\zone file\maps\public.lvl usingDefaultTileset False public.lvl @ OpenMap, tile data starting at 50013 +++ Last update: 18-01-2007 - Update period: 2 Float tileset loaded |
tcsoccerman wrote: |
but it never shows the little time capsule loading symbol |
tcsoccerman wrote: |
Yo, drake, i found a problem..at least on mine. When you choose the line it starts the line before i click once i drag it on the map...like the older ssme i think. Anyway to manually fix it or could you update that??? |