Map Manipulation

Map Manipulation

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

Map Manipulation

Post by trepan »

Just having a little fun...

It takes about a half a second to run an operation over this entire map
(Castle.smf, 16x16; AMD64 X2 3800+). If someone wanted to try making
tides, then you'd have to do it by adjusting map segments. It would probably
cause units on the boundary to get stuck.

P.S. This is smoth's fault. He asked me to make sure that ground flattening
was handled properly for LuaGaia (before even having played with it).
From there, I fixed the ground flattening for new mobile units from builders,
adjusted the .give ground flattening, I added this stupid in-game map mod
feature.


FlatLand

Image

WaterWorld

Image
User avatar
Masse
Damned Developer
Posts: 979
Joined: 15 Sep 2004, 18:56

Post by Masse »

that is absolutely fantastic !
does this mean that lua can manipulate height map ?
if it could u could do draw mountains in middel of game :)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

adjusted the .give ground flattening,
:-) !

Plus, great stuff overall!
Oxirane
Posts: 13
Joined: 10 Jan 2007, 03:10

Post by Oxirane »

Nice work,

Tides would be cool.
where you can enter 2 heights and a time for the water level to oscillate between.

This would add more time specific game play, like attacking with ground when the tides are low etc.
User avatar
diggz2k
Posts: 208
Joined: 04 Mar 2005, 06:34

Post by diggz2k »

Now if we could add hail damage or lightning or meteors. OR Volcanic rocks and lava spewing from a volcano map?
User avatar
LOrDo
Posts: 1154
Joined: 27 Feb 2006, 00:21

Post by LOrDo »

Didn't OTA have somthing like that?
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

OTA had certain 'weather effects - meteor, hail, etc - but they were just weapons being shot down randomly by the map. nothing like the terrain flattening thing.

If someone were to write a standardized Spring LUA framework for doing certain things (flocking behaviors, tides, etc) we could have some truly dynamic maps... Even like, volcanoes that slowly spew their own mass over the rest of the map o_O
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Post by knorke »

if it was possible to save the changes, would it be possible to make an mapeditor this way?
User avatar
smartie
NOTA Developer
Posts: 146
Joined: 23 Jun 2005, 19:29

Post by smartie »

This doesn't work :|

Ships get stuck when they try to go over an area that was formerly land. You can still drive them around in FPS mode, and it looks like they should be able to go through the area using F2 view, but they still get stuck once they stop moving and don't respond to orders.
Post Reply

Return to “Lua Scripts”