Регистрация    Вход    Форум    FAQ

Список форумов » Вселенная Звёздных Волков » Discussion for use english




Начать новую тему Ответить на тему  [ Сообщений: 115 ]  На страницу Пред.  1, 2, 3, 4, 5, 6, 7, 8  След.
Автор Сообщение
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 17 май 2010, 11:48 
Не в сети
Командор
Командор

Зарегистрирован: 24 ноя 2007, 15:45
Сообщений: 4273
Откуда: Подмосковье, Щёлково
Upon base special SUMMON, possible do ANY!!!! necessary special!
ANY!!!!
But actuate his possible will only be through concrete pilot!

Such are made groups of ten approximately!
"Retirement" (pilot possible to sacking), "Ship's portal" (jump without portal, with seat) and miscellaneous.

P.S. You has got "gift"? :)

_________________
Были у отца три сына. Двое умных, а третий... себе компьютер купил.


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 17 май 2010, 13:18 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 22 апр 2010, 00:29
Сообщений: 104
Aleksty писал(а):
Such are made groups of ten approximately!

How to make such a group? The game makes group of max 5 fighters (with 20 power).
Aleksty писал(а):
"Retirement" (pilot possible to sacking), "Ship's portal" (jump without portal, with seat) and miscellaneous.

I don't fully understand. Could you say some more about it?
P.S. any code samples would be nice :)

_________________
Darkness travels more swiftly than light!


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 17 май 2010, 15:21 
Не в сети
Командор
Командор

Зарегистрирован: 24 ноя 2007, 15:45
Сообщений: 4273
Откуда: Подмосковье, Щёлково
The Problems with my computer.
Mainboard death :(
Information inaccessible to 21 May, as minimum, alas...
After shall try to explain

Briefly!
1. Find In Specials.xml Summon!
2. Bottom line this function
which is caused from Scripts/AI/Special.script
3. Replacement to functions upon its in files xml and script.
4. Test! All will operate!
5. In analogy with summon do its special

_________________
Были у отца три сына. Двое умных, а третий... себе компьютер купил.


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 17 май 2010, 23:13 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 22 апр 2010, 00:29
Сообщений: 104
Hmm...I can't stop thinking about what you said.
Aleksty писал(а):
"Retirement" (pilot possible to sacking)

Do you mean something like:
pilot = Kill();
pilot = NIL;
This is what you call retirement?
Aleksty писал(а):
"Ship's portal" (jump without portal, with seat) and miscellaneous.

Could you give a small sample of code please. I can't figured it out. How to make a jump without ending point? Randomized? Do you think about jump from sector to sector or inside sector (like between inner portals)?

_________________
Darkness travels more swiftly than light!


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 18 май 2010, 10:49 
Не в сети
Командор
Командор

Зарегистрирован: 24 ноя 2007, 15:45
Сообщений: 4273
Откуда: Подмосковье, Щёлково
1. No pilot = Kill();, no pilot = NIL;!
Pilot exclude from command of the player, he speaks - "While" - and flies in nearest portal.
This special! Pilot in Interceptor!
Exactly no memories, but something type this:
For instance in business trip :)

PlayerTeam = CreateTeam(PLAYER_TEAM);
PlayerGroup = PlayerTeam:CreateGroup(PLAYER_GROUP);
PlayerTeam:RemovePilot("Hero");


2. This big script! No memories!
There is three types ship's portal.
For governing they need pilot possessing certain skill.
Ship's portal consists of 6 blocks, which it is necessary to buy.
Afterwards it is necessary to find the pilot! :)

1 type of the portal allows to move in nearest systems.
2 type of the portal allows to move in nearest NOT INVESTIGATION starry system.
3 type of the portal - for quests.


We Wait 21 May!
Then shall answer in detail

P.S, There is else and "Jump-portal" - a portal at SELECTION OF THE DIRECTION JUMP.
Plenty of what there is shorter :)

All Portals for Orion

1. Planet potal (orbit - atmosphere of the planet)
2. Only system portal (region system - other region system)
3. Systems portal (system only sector - other system this sector)
4. Sectors portal (sector - sector)
5. Jump-poral (any sector other square galaxies)
6. Ship's portal
7. Alien fractions portals (giper portals, specials portal)

_________________
Были у отца три сына. Двое умных, а третий... себе компьютер купил.


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 19 май 2010, 13:23 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 22 апр 2010, 00:29
Сообщений: 104
Ship spawning problem. When I use function showed below I get flight that should contain 7 fighters ("7" shows on the tab on the right edge of the screen) are but only 6 are visible. Why is it so?
[spoiler="spawning function"]local_num2 = 0;
init_team2 = 0;

function SummonPrecFunction(x, y, z, ship, duration, level)
local flight_usage;

local_num2 = local_num2 + 1;

local CenterDislocation = Vector3(x,y,z);
local orientation = ship:GetPosition() - CenterDislocation;

CreatePortalGlow(CenterDislocation, orientation, 5);

if (init_team2 == 0) then
Prec_Team_Summoned = CreateTeam("Prec_Summoned");
Prec_Group_Summoned = Prec_Team_Summoned: CreateGroup("Prec_Group_Summoned");
SetInitTeamRelation(PLAYER_TEAM, Prec_Team_Summoned, RELATION_FRIEND);
init_team2 = 1;
end;

GW_Pilots = {"Guardian", "GuardianHigh", "USSPilot", "USSOfficer", "PatrolHyperAce"};

GW_Fighters = {
{{"Satan_1",1,"A"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"D"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",1,"A"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",1,"D"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"D"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"},{"Excalibur_pat1",1,"A"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"},{"Excalibur_pat1",1,"D"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",1,"A"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",1,"D"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"},{"Excalibur_pat1",1,"A"},{"Hatchet_pat2",1,"A"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"},{"Excalibur_pat1",1,"D"},{"Hatchet_pat2",1,"D"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",1,"A"},{"Hatchet_pat2",1,"A"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",1,"D"},{"Hatchet_pat2",1,"D"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"},{"Excalibur_pat1",1,"A"},{"Hatchet_pat2",1,"A"},{"Cleaner_pat1",1,"A"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",1,"A"},{"Excalibur_pat1",1,"A"},{"Hatchet_pat2",1,"D"},{"Cleaner_pat1",1,"D"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",1,"A"},{"Hatchet_pat2",1,"A"},{"Cleaner_pat1",1,"A"}},
{{"Satan_1",2,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",2,"A"},{"Hatchet_pat2",1,"D"},{"Cleaner_pat1",1,"D"}},
{{"Satan_1",1,"A"},{"Stormcrow_pat1",2,"A"},{"Excalibur_pat1",3,"D"},{"Hatchet_pat2",4,"D"},{"Cleaner_pat1",5,"D"},{"Tiger_pat1",2,"A"},{"Cleaner_pat1",1,"D"}}};

CreateGWFlight(GW_Pilots, GW_Fighters, "Prec_Group_Summoned", "Prec_"..local_num2, CenterDislocation, 20, Vector3(1,0,0), "shipFormation")

flight_usage = getglobal("flight_Prec_"..local_num2);
flight_usage:SetOrientation(orientation);
flight_usage:Escort(ship);
end;

----------------------------------

function CreateGWFlight(tab_pilot, tab_flight, group, sign, location, power, orient2, formation)
local flight;
local ship;
local pilot;
local grp = getglobal(group);
local orient = orient2 or Vector3(0,0,1);
local form = formation or "shipFormation";

if (sign == nil) then
LOG("Sign is not defined! Cannot create flight!");
return FALSE;
end;
local level = power or 1;
if (level < 1) then level = 1 end;
if (level > 20) then level = 20 end;
if (grp) then
flight = grp:CreateFlight("flight_"..sign);
else
LOG("No Group to create flight!"); return FALSE;
end;

setglobal("flight_"..sign, flight);

local i1 = 1;
local sh = {};
for i1, sh in tab_flight[level] do
ship = CreateCarcass(sh[1], Vector3( 0, 0, (i1-1)*5) + location);
pilot = CreatePilot(tab_pilot[sh[2]]);
ship:AssignPilot(pilot);
flight:AddShip(ship);
if (i1 > 1) then
if (sh[3]== "A") then
ship:SetRole(ROLE_ATTACK);
elseif (sh[3]== "D") then
ship:SetRole(ROLE_DEFEND);
elseif (sh[3]== "M") then
ship:SetRole(ROLE_MISSLEDEFENCE);
elseif (sh[3]== "R") then
ship:SetRole(ROLE_REPAIR);
elseif (sh[3]== "C") then
ship:SetRole(ROLE_CLOACKING);
else
ship:SetRole(ROLE_ATTACK);
end;
end;
setglobal("ship_"..sign.."_"..i1, ship);
setglobal("pilot_"..sign.."_"..i1, pilot);
end;
flight:SetFormation(form);
flight:SetOrientation(orient);
return flight;
end;
[/spoiler]
This function is activated by Summon perk and works perfect up to 6 fighters. 7th is invisible.

-----------------------------------------------------------------------------------------------

Aleksty писал(а):
1. Planet potal (orbit - atmosphere of the planet)

This means there will be something to do on the planets? Could you say some more about it? Maybe like new Eve Online addon?

Ok. I'll wait until 21 may. Now I'm trying to make a function that allows close range jumps inside a sector like 200-300 clicks (2-3 squares). It can be an interesting perk.

---- EDIT ----
I want to apologize for my mistake. I misunderstanded this post
Aleksty писал(а):
Top Secret!
krink name - Michael!!!! :SORRY:

and thought that Michael Moon and krink are the same person with two accounts. Due to this, some my post and mails may looked strange. I've just realized this today. Sorry once again.

_________________
Darkness travels more swiftly than light!


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 19 май 2010, 17:15 
Не в сети
Командор
Командор

Зарегистрирован: 24 ноя 2007, 15:45
Сообщений: 4273
Откуда: Подмосковье, Щёлково
Цитата:
This function is activated by Summon perk and works perfect up to 6 fighters. 7th is invisible.


See here Scripts/AI/ShipFormation.script
See all files ......script in CW game!
Search for where is prescribed shapings flight!
There add their own arrays.


We created several SkayBox imitating flight on surface of the planets!
Some events scenario unrolled exactly there.

_________________
Были у отца три сына. Двое умных, а третий... себе компьютер купил.


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 19 май 2010, 21:38 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 22 апр 2010, 00:29
Сообщений: 104
Aleksty писал(а):
Цитата:
This function is activated by Summon perk and works perfect up to 6 fighters. 7th is invisible.

See here Scripts/AI/ShipFormation.script
See all files ......script in CW game!
Search for where is prescribed shapings flight!
There add their own arrays.

I've modified ShipFormation.script as you said. Example formation I use:

function shipFormationWing(shipSize, shipCount)
local dist = shipSize * 2;

local a = Vector3(0,0,0);
local b = Vector3(dist * 1, 0, -dist * 1.5);
local c = Vector3(-dist * 1, 0, -dist * 1.5);
local d = Vector3(dist * 2, 0, -dist * 3);
local e = Vector3(-dist * 2, 0, -dist * 3);
local f = Vector3(dist * 3, 0, -dist * 4.5);
local g = Vector3(-dist * 3, 0, -dist * 4.5);

return a, b, c, d, e, f, g;
end;


The 7th g entry is added by me. Unfortunately, it doesn't work. 7th fighter appears in the center of the map (0,0,0) and flying around this point. He can't go anywhere. It's so simply function that I can't imagine what's wrong. Looks like the game engine has fixed number of ships in one group.

_________________
Darkness travels more swiftly than light!


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 19 май 2010, 22:53 
Не в сети
Site Admin
Site Admin

Зарегистрирован: 16 окт 2007, 14:40
Сообщений: 442
Откуда: Санкт-Петербург
Maximum ship in flight - 6. This is c++ code from engine, this function call from Lua as flight:SetFormation("NAME_OF_FORMATION_FUNCTION"):

INT ScriptDispatcherServices::Flight_SetFormation(lua_State* L)
{
UniqID flightID;
// flight_id from lua - 1 param
flightID.InitFromExistUniqID((DWORD) GetNumericField(L, "id", 1));
// from flight_id get flight
ShipGroups::ShipFlight* pFlight = Root::GetTeamManager().GetFlight(flightID);
// If not flight then error and exit
if (!pFlight)
return 1;
// If flight id empty then error and exit
if (pFlight->IsEmpty())
return 1;
// Leader ship for this flight
GameModules::ShipCarcass* ldr = pFlight->GetLeaderShip();
// If not leader ship then error and exit
if(!ldr)
return 1;
// Max ship size in the flight
FLOAT maxSize = pFlight->GetMaxShipSize();
GameModules::BaseCarcassList shipList;
// Ship list from flight
pFlight->GetShips(shipList);
// Leader position
Vector3 ldrPos = ldr->GetPosition();
// Formation function name (2 param from lua)
const char* pFormFuncName = lua_tostring(L, 2);
INT nArgc = lua_gettop(L);
lua_settop(L, 0);
lua_getglobal(L, pFormFuncName);
// If this is not LUA function then error
if (!lua_isfunction(luaVM, -1))
return 1;
// First param - max ship size
lua_pushnumber(L, maxSize);
// Second param - ship count
lua_pushnumber(L, (FLOAT)shipList.Count());
// Call LUA function
lua_call(L, 2, 6);
// Count returned params
nArgc = lua_gettop(L);
// Array for new ship position. Only 6 elements.
Vector3 newPos[6];
// Only for 6 ships
for (INT i= 0; i<6;i++)
{
// i ship
GameModules::BaseCarcass* pShip = shipList[i];
if (pShip)
{
// Set position in array
newPos[i].x = (FLOAT)GetNumericField(L, "x", 5 - i);
newPos[i].y = (FLOAT)GetNumericField(L, "y", 5 - i);
newPos[i].z = (FLOAT)GetNumericField(L, "z", 5 - i);
// Set position for ship
pShip->SetPosition(ldrPos + newPos[i]);
}
}
// Return to LUA
return 1;
}

PS: This is not from SW CW, but I think it nothing changed. :(


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 19 май 2010, 23:03 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 22 апр 2010, 00:29
Сообщений: 104
I'm not that good. What can I do with this code? How to change and apply it to the game?

_________________
Darkness travels more swiftly than light!


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 19 май 2010, 23:04 
Не в сети
Командор
Командор

Зарегистрирован: 24 ноя 2007, 15:45
Сообщений: 4273
Откуда: Подмосковье, Щёлково
My error!
No ShipFormation.script!
ShipFormation.script for order of the location of the naves in group!
The Phalanx, line and miscellaneous!

See other script in folder AI and folder include/Create_flight.
Do Not know that to have charge of shaping flight in CW game!

In SW2 game - this Create_flight.script or Create_flight2.script!
In original SW2 it is prescribed the maximum 5 type, under 2,3,4,5,6 flight
In Orion Mod till 10 type for 2,3,4,5,6,7,8 flight
All operates :)

_________________
Были у отца три сына. Двое умных, а третий... себе компьютер купил.


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 20 май 2010, 08:01 
Не в сети
Site Admin
Site Admin

Зарегистрирован: 16 окт 2007, 14:40
Сообщений: 442
Откуда: Санкт-Петербург
Goblin_Wizard писал(а):
I'm not that good. What can I do with this code? How to change and apply it to the game?


I've added comments to the code. Read them and you will understand everything.
Nothing you can do with this code. This is proof that the formation is set for a maximum of 6 ships.


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 20 май 2010, 17:29 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 16 дек 2009, 08:01
Сообщений: 205
Откуда: Третья планета Солнечной системы, г. Магадан
Krafter писал(а):
Really someone except Russian still is interested in this game, Star wolves? I thought that all for a long time have forgotten about this rather good game.
PS. I badly know English language, translated by means of the translator with mail.ru


Many foreign players are interested in Star wolves, sites badly find the live could not also anything surprising are not present if game good will be mmm... Fans (a rough word, I would tell "loving game").
Living example game Warlords Battlecry 3 in Russia all sites have died, and I have found the Canadian site on mine modes with quite adequate audience, a narrow circle of persons. And game left in 2004 and has fallen a victim pop Warcraft "a 3. In Magadan I tried to advance themes Lords, SW and Star Control 2, but... All the super drawing submit and do itself, and we will be spat from silly space games :(


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 21 май 2010, 00:27 
Не в сети
Стажер
Стажер
Аватар пользователя

Зарегистрирован: 22 апр 2010, 00:29
Сообщений: 104
The problem:
I want to copy one of the flights. For example your hero flight. I want to get the same ship with the same equipment but with AI pilot. Could you give me some clues how to do this? I've tried "pilot:GetShip()" function but I really don't know what this function returns. I'm sure it's not a whole ship with the equipment and even not name of the carcass. Please, help.

_________________
Darkness travels more swiftly than light!


Вернуться наверх 
 Профиль  
 
 Заголовок сообщения: Re: Use English, please
 Сообщение Добавлено: 21 май 2010, 10:30 
Не в сети
Командор
Командор
Аватар пользователя

Зарегистрирован: 29 янв 2008, 22:49
Сообщений: 6701
Goblin_Wizard писал(а):
The problem:
I want to copy one of the flights. For example your hero flight. I want to get the same ship with the same equipment but with AI pilot. Could you give me some clues how to do this? I've tried "pilot:GetShip()" function but I really don't know what this function returns. I'm sure it's not a whole ship with the equipment and even not name of the carcass. Please, help.

It returns the ID-number of the ship. But I doubt you can use ships with the same ID-number in the same location.
Maybe Krink can tell you something about how to do this. I wouldn't even try.

_________________
Suum Quique


Вернуться наверх 
 Профиль  
 
Показать сообщения за:  Сортировать по:  
 
Начать новую тему Ответить на тему  [ Сообщений: 115 ]  На страницу Пред.  1, 2, 3, 4, 5, 6, 7, 8  След.

Список форумов » Вселенная Звёздных Волков » Discussion for use english


Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 1

 
 

 
Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Перейти:  
cron
Русская поддержка phpBB

[ Time : 0.298s | 13 Queries | GZIP : On | Load : 0.060546875 ]