Jump to content

[SOLVED] Akina map mod


djaa2807

Recommended Posts

Hi i'm trying to load the Akina map mod!!

Here's my meta

<meta> 
    <info author="djaa2807" version="1.0.0" type="script" name="map-akina" />    
     
    <script src="akina.lua" type="client"/> 
     
    <file src="akina1.col" type="client"/> 
    <file src="akina2.col" type="client"/>   
    <file src="akina3.col" type="client"/>   
    <file src="akina4.col" type="client"/>   
    <file src="akina5.col" type="client"/>   
    <file src="akina1.dff" type="client"/>   
    <file src="akina2.dff" type="client"/>   
    <file src="akina3.dff" type="client"/>   
    <file src="akina4.dff" type="client"/>   
    <file src="akina5.dff" type="client"/>   
    <file src="akina.txd" type="client"/>        
</meta> 

Here's akina.lua

function akina() 
    txd = engineLoadTXD ( "akina.txd" ) 
        engineImportTXD ( txd, 3914 ) 
        engineImportTXD ( txd, 3911 ) 
        engineImportTXD ( txd, 3905 ) 
        engineImportTXD ( txd, 3907 ) 
        engineImportTXD ( txd, 3906 ) 
    col = engineLoadCOL ( "akina1.col" ) 
    col1 = engineLoadCOL ( "akina2.col" ) 
    col2 = engineLoadCOL ( "akina3.col" ) 
    col3 = engineLoadCOL ( "akina4.col" ) 
    col4 = engineLoadCOL ( "akina5.col" ) 
    dff = engineLoadDFF ( "akina1.dff", 0 ) 
    dff1 = engineLoadDFF ( "akina2.dff", 0 ) 
    dff2 = engineLoadDFF ( "akina3.dff", 0 ) 
    dff3 = engineLoadDFF ( "akina4.dff", 0 ) 
    dff4 = engineLoadDFF ( "akina5.dff", 0 ) 
    engineReplaceCOL ( col, 3914 ) 
    engineReplaceCOL ( col1, 3911 ) 
    engineReplaceCOL ( col2, 3905 ) 
    engineReplaceCOL ( col3, 3907 ) 
    engineReplaceCOL ( col4, 3906 ) 
    engineReplaceModel ( dff, 3914 ) 
    engineReplaceModel ( dff1, 3911 ) 
    engineReplaceModel ( dff2, 3905 ) 
    engineReplaceModel ( dff3, 3907 ) 
    engineReplaceModel ( dff4, 3906 ) 
    engineSetModelLODDistance(3914, 2000) 
    engineSetModelLODDistance(3911, 2000) 
    engineSetModelLODDistance(3905, 2000) 
    engineSetModelLODDistance(3907, 2000) 
    engineSetModelLODDistance(3906, 2000) 
end 
  
function chat() 
    outputChatBox('# Akina Map loaded!', player, 0, 255, 0)      
end 
  
setTimer ( akina, 1000, 1) 
addCommandHandler("akina",akina) 
addCommandHandler("akinas",akina) 
addCommandHandler("akinauh",akina) 
addCommandHandler("akinauhs",akina) 
addCommandHandler("mapas",akina) 
addCommandHandler("akina",chat) 
  
addEventHandler("onClientResourceStop", getResourceRootElement(getThisResource()), 
    function() 
        engineRestoreCOL(3914) 
        engineRestoreCOL(3911) 
        engineRestoreCOL(3905) 
        engineRestoreCOL(3907) 
        engineRestoreCOL(3906) 
        engineRestoreModel(3914) 
        engineRestoreModel(3911) 
        engineRestoreModel(3905) 
        engineRestoreModel(3907) 
        engineRestoreModel(3906) 
        destroyElement(dff) 
        destroyElement(dff1) 
        destroyElement(dff2) 
        destroyElement(dff3) 
        destroyElement(dff4) 
        destroyElement(col) 
        destroyElement(col1) 
        destroyElement(col2) 
        destroyElement(col3) 
        destroyElement(col4) 
        destroyElement(txd) 
    end 
) 

I got all the txd col and dff file.. But the map aint loading.. but it is downloading..

What am i doing wrong here? Anybody?

Edited by Guest
Link to comment

@Jaysds1 How does an action marker plugin for the map-editor help me load a map? I dont think this is even close lol :shock:

I think i got it.. i only got the clientside model replacement script... I aint got no map because it wasnt created.. Because the objects need to be created using a serverside script? Am i right anyone else? createobject perhaps.. Anyone got a release for akina ?? I didnt find it on the forum..

And yes.. I am noob with txd/dff based maps because i never tried to make and script one yet!

Link to comment

Jaysds1< As you can see i have already loaded the txd and dff, modloader is not required here..

ZverCR< Yes, maybe, depends on your definition of stolen

This topic is Solved, i had to get the original IPL file of Akina to get the position of the object files and create the objects at the same position and rotation as in the file and voila!! Akina Appears!! Seriously people.. Didnt any of you guys know that ?? Or maybe you didnt want to share.. I have a feeling that the Akina mod is kind of taboo here, no one gives clear answers to make people just give up on it, like some kind of conspiracy :P

And yes these models are replaced so, people can use map editor and use the replaced model ids to place them manually and achieve the same thing.

And a tip for new scripters: People on IRC are more helpful and give faster and accurate replies.. You just need to figure out which channel.. I wont give out names.

hence

[sOLVED]

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...