Forum

> > Stranded II > Scripts > Sun and Moon position
Forums overviewStranded II overview Scripts overviewLog in to reply

English Sun and Moon position

6 replies
To the start Previous 1 Next To the start

old Sun and Moon position

JasJack67
Super User Off Offline

Quote
So I am searching for scripting info to change the default position of the Sun and Moon.

As the sun and moon are sitting low in the sky, I would rather put them at like "high noon" directly above my map centered.

This info is given in the website scripting page for sprites:

info_sprite information ID ["file"] [X, Y], [R, G, B] [Alpha] [, blend] [, Fix]
Categories: info, effects
Changes the sprite a sprite information.
If no parameters are specified, then the sprite is removed (the info itself remains unchanged!)
With file is a image file is specified relative to Modornder ("self" to the shared file continue to use). X and Y determine the size (standard 1.1). With R, G, B color can be specified (default 255,255,255). About Alpha transparency is regulated 0.0-1.0 (Standard 1). Blend With the sprite can be made bright (1 or 0, default 0). With fix it can be fixed vertically so that it does not rotate (1 or 0, default 0)


My sun and moon textures are a sprite in the sprites folder...but I see no reference to the actual sun or moon the sprite is attached too?

seems I should be able "get" the x,y,z position of the sun or moon and move it to noon position. no? Or, destroy it then recreate it at a new location?

Im baffled... any thought welcomed.

old Re: Sun and Moon position

DC
Admin Off Offline

Quote
That stuff is hardcoded into the game. You can't change it with scripts. You would have to touch the actual source code of Stranded II to change this

old Re: Sun and Moon position

JasJack67
Super User Off Offline

Quote
ty DC...

I noticed in McLeaf's mod Titanium he has a folder called "includes" that appears to have additional code, in the main stranded II folder. (to make his sky clouds and sun move) Is this source code picked up automatically if I put a folder in mine called "includes" with added code? Or is that something he did outside the box so-to-speak?

or

How can I, and may I, edit the source code please? OR what tool would I use to open what file to edit source codes?

old Re: Sun and Moon position

JasJack67
Super User Off Offline

Quote
Quote
Nova
excellent! Surprised I did not find that, ty.


so basically that file has the "includes" folder I was talking about above...can I just copy it into my Stranded folder and edit the files? It will be read when I launch my mod?

old Re: Sun and Moon position

ohaz
User Off Offline

Quote
No, just copying it inside your folder isn't enough. You'd need to compile a merged version.

old Re: Sun and Moon position

JasJack67
Super User Off Offline

Quote
so i actually have to:
1)edit the source code "includes" folder .bb files to my liking.
2)then recompile the "includes" folder into an .exe executable?

is there anything else to it I should know?

----------------------------
EDIT: ok i read the readme.txt How To...thanks for your guys help.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewStranded II overviewForums overview