Quantcast

Jump to content

» «
Photo

Are we still able to make ini's

19 replies to this topic
asukayakuza1234
  • asukayakuza1234

    +<[*_*]>+ Jigglepuss

  • Members
  • Joined: 23 Nov 2004

#1

Posted 11 January 2006 - 07:42 AM

Im just wondering if it will let us create and edit inis like vcmp does, i really really hope so. also if so, are there any extended options, like set time? Also will there be an easy boundary program, so we can see where teh boundaries can be set, (like the one jacob made)???

kyeman
  • kyeman

    Snitch

  • Members
  • Joined: 13 Sep 2004

#2

Posted 11 January 2006 - 09:18 AM

The ini system is replaced by a server side scripting system which uses the SMALL language. The scripting system has all the features of the ini plus the ability to control the game's flow.

Simon.
  • Simon.

    Gangsta

  • The Connection
  • Joined: 01 Feb 2005

#3

Posted 11 January 2006 - 09:47 AM Edited by simoncampbell, 11 January 2006 - 10:08 AM.

QUOTE (kyeman @ Jan 11 2006, 22:18)
The ini system is replaced by a server side scripting system which uses the SMALL language. The scripting system has all the features of the ini plus the ability to control the game's flow.

Sorry, but would you or other team members mind explaining that a little more in-depth? Unless of course you want it to be a suprise.

And also technically on the same topic, do you have any "sample" scripts of a server script? I'd like to see how technical it is, if technical at all monocle.gif .

Thanks.

EDIT: I done some thinking on the first question. Is the game-flow, the time, weather, clock-speed etc?

EDIT: First question answered in IRC, for those who want to know about that question here is a quote;
QUOTE (#samp channel @ GTANet IRC)
[22:59] <Simon> Question: kyeman said something about controlling the game flow with the server scripting. Is the game-flow, the time, weather, clock-speed etc?
[23:01] <kyeman> time, weather yes
[23:01] <kyeman> clock speed, no

Mr Killer
  • Mr Killer

    Upside-down circle

  • BUSTED!
  • Joined: 17 Feb 2005

#4

Posted 11 January 2006 - 11:10 AM

I was wondering the same thing, thanks for that Simon. wink.gif

Spooky
  • Spooky

    Prince of the Yolkfolk

  • Members
  • Joined: 13 Jan 2002

#5

Posted 11 January 2006 - 12:31 PM

This is a pretty much blank script...

CODE
#include <a_samp>
#include <core>
#include <float>

main()
{
   print("\n----------------------------------");
   print("  This is a test GameModeScript.\n  by spookie");
   print("----------------------------------\n");
   
    printf("  %s is %d!", "SA:MP", 0x539);
}

public OnGameModeInit()
{
   print("GameModeInit()");
   
   SetGameModeText("Freeroam");
   SetTeamCount(-1);
   
   SetInitialPlayerPos (1728.675, -1063.189, 23.93901);
   SetInitialCameraPos (1728.83, -1059.756, 24.0);
   SetInitialCameraLook(1728.675, -1063.189, 25.50);

   // #team (0 based / -1 = independant) #model_id #spawn_x #spawn_y #spawn_z
   // #z_angle #weapon_1 #weapon_1_ammo #weapon_2 #weapon_2_ammo #weapon_3 #weapon_3_ammo
   AddPlayerClass(165, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(166, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(102, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(103, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(104, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(105, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(106, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(107, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(108, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(109, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(110, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(111, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(112, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(113, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(114, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(115, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(116, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(117, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(118, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(120, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(121, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(122, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(123, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(124, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(125, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(126, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);
   AddPlayerClass(127, 1728.675, -1063.189, 23.93901, 0.0, 0, 0, 3, 35, 28, 120);

   // Go-Karts
   AddStaticVehicle(571, 1641.809, -1044.034, 23.3798, 270.0, -1, -1);
   AddStaticVehicle(571, 1640.751, -1048.123, 23.3802, 270.0, -1, -1);
   AddStaticVehicle(571, 1646.009, -1047.987, 23.3795, 270.0, -1, -1);
   AddStaticVehicle(571, 1646.251, -1044.0, 23.37924, 270.0, -1, -1);
   // Bmxs
   AddStaticVehicle(481, 1686.115, -1044.798, 23.48555, 270.0, -1, -1);
   AddStaticVehicle(481, 1684.115, -1044.798, 23.48555, 270.0, -1, -1);
   AddStaticVehicle(481, 1682.115, -1044.798, 23.48555, 270.0, -1, -1);
   AddStaticVehicle(481, 1680.115, -1044.798, 23.48555, 270.0, -1, -1);

   return 1;
}

public OnGameModeExit()
{
   print("GameModeExit()");
   return 1;
}

public OnPlayerStateChange(playerid, state)
{
   printf("OnPlayerStateChange(%d, %d)", playerid, state);
   return 1;
}

public OnPlayerConnect(playerid)
{
   printf("OnPlayerConnect(%d)", playerid);
   return 1;
}

public OnPlayerDisconnect(playerid)
{
   printf("OnPlayerDisconnect(%d)", playerid);
   return 1;
}

public OnPlayerSpawn(playerid)
{
   printf("OnPlayerSpawn(%d)", playerid);
   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   printf("OnPlayerDeath(%d, %d, %d)", playerid, killerid, reason);
   return 1;
}

public OnVehicleSpawn(vehicleid)
{
   printf("OnVehicleSpawn(%d)", vehicleid);
   return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
   printf("OnVehicleDeath(%d, %d)", vehicleid, killerid);
   return 1;
}

public OnPlayerText(playerid)
{
   printf("OnPlayerText(%d)", playerid);
   return 1;
}

public OnPlayerInfoChange(playerid)
{
   printf("OnPlayerInfoChange(%d)");
   return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
   printf("OnPlayerRequestClass(%d, %d)", playerid, classid);
   return 1;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   printf("OnPlayerEnterVehicle(%d, %d, %d)", playerid, vehicleid, ispassenger);
   return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
   printf("OnPlayerExitVehicle(%d, %d)", playerid, vehicleid);
   return 1;
}

J-Fox.GEMM
  • J-Fox.GEMM

    Ello...

  • Members
  • Joined: 31 Aug 2004

#6

Posted 11 January 2006 - 12:56 PM

It seems to be a cpp include file.

does that mean we need c++ to change the script? blink.gif

kyeman
  • kyeman

    Snitch

  • Members
  • Joined: 13 Sep 2004

#7

Posted 11 January 2006 - 01:04 PM

It's not C++, it's a scripting language that's very similar to C.

MrJax
  • MrJax

    Player Hater

  • Members
  • Joined: 31 May 2005

#8

Posted 11 January 2006 - 05:04 PM

Don't forget interiors, people are gonna wanna spawn things in places like the dirtring tounge.gif

njr1489
  • njr1489

    MP5

  • Members
  • Joined: 05 Jan 2005

#9

Posted 11 January 2006 - 09:25 PM

For a scripting language that's not C++, it looks simalar. Doen't seem hard to understand for me.

Simon.
  • Simon.

    Gangsta

  • The Connection
  • Joined: 01 Feb 2005

#10

Posted 12 January 2006 - 12:56 AM

QUOTE (Spooky @ Jan 12 2006, 01:31)
<snip></snip>

I like the look of the scripting language. I already feel kinda familiar for some reason... happy.gif

Spooky
  • Spooky

    Prince of the Yolkfolk

  • Members
  • Joined: 13 Jan 2002

#11

Posted 12 January 2006 - 01:38 AM

If you want to simply add cars and spawn points in certain places, there's not much more to it than the ini method.

The callback functions, e.g.
CODE
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  printf("OnPlayerEnterVehicle(%d, %d, %d)", playerid, vehicleid, ispassenger);
  return 1;
}
...aren't required, if they're not in the script, it simply does nothing when the event fires. So, a script only *really* needs the main() function, which can be used to setup spawns and car locations.

asukayakuza1234
  • asukayakuza1234

    +<[*_*]>+ Jigglepuss

  • Members
  • Joined: 23 Nov 2004

#12

Posted 12 January 2006 - 02:59 AM

ohhh, so its gonna be harder than making em for vcmp sad.gif . oh well >_<!

njr1489
  • njr1489

    MP5

  • Members
  • Joined: 05 Jan 2005

#13

Posted 12 January 2006 - 03:18 AM

QUOTE (asukayakuza1234 @ Jan 12 2006, 02:59)
ohhh, so its gonna be harder than making em for vcmp sad.gif . oh well >_<!

Not really, you just need to understand what certain symbols mean. Take a look at this.

CODE
// Go-Karts
  AddStaticVehicle(571, 1641.809, -1044.034, 23.3798, 270.0, -1, -1);
  AddStaticVehicle(571, 1640.751, -1048.123, 23.3802, 270.0, -1, -1);
  AddStaticVehicle(571, 1646.009, -1047.987, 23.3795, 270.0, -1, -1);
  AddStaticVehicle(571, 1646.251, -1044.0, 23.37924, 270.0, -1, -1);


From my C++ experience, I can see a few things simalar in this language. For example, "//" is to comment on anything you want, its suggested to put what is related to the code below it.

Other than that, it looks easy. "AddStaticVehicle" is self explanatory. 571 is obviously the Car ID #, and the next 3 numbers are the coordinates. The 4th number is the rotation degree, and the -1's are just the color. Very simalar to VC-MP. I can't wait to script some good ini's.

Serafim
  • Serafim

    Prankster

  • Members
  • Joined: 30 Dec 2005

#14

Posted 12 January 2006 - 03:31 AM Edited by Serafim, 12 January 2006 - 03:33 AM.

QUOTE (njr1489 @ Jan 12 2006, 03:18)
QUOTE (asukayakuza1234 @ Jan 12 2006, 02:59)
ohhh, so its gonna be harder than making em for vcmp  sad.gif . oh well >_<!

Not really, you just need to understand what certain symbols mean. Take a look at this.

CODE
// Go-Karts
  AddStaticVehicle(571, 1641.809, -1044.034, 23.3798, 270.0, -1, -1);
  AddStaticVehicle(571, 1640.751, -1048.123, 23.3802, 270.0, -1, -1);
  AddStaticVehicle(571, 1646.009, -1047.987, 23.3795, 270.0, -1, -1);
  AddStaticVehicle(571, 1646.251, -1044.0, 23.37924, 270.0, -1, -1);


From my C++ experience, I can see a few things simalar in this language. For example, "//" is to comment on anything you want, its suggested to put what is related to the code below it.

Other than that, it looks easy. "AddStaticVehicle" is self explanatory. 571 is obviously the Car ID #, and the next 3 numbers are the coordinates. The 4th number is the rotation degree, and the -1's are just the color. Very simalar to VC-MP. I can't wait to script some good ini's.

Yeah, it's easy to understand, there is a tip above. I need to wait the script to get any conclusions (if is harder than vc-mp or not)

FW: I know, the script is here, but I mean DO my own script, it looks easy like vc-mp smile.gif

asukayakuza1234
  • asukayakuza1234

    +<[*_*]>+ Jigglepuss

  • Members
  • Joined: 23 Nov 2004

#15

Posted 12 January 2006 - 05:27 AM

ahhh. thnx njr makes more sense now, i love making inis, littlewhitey is hosting one of mine atm biggrin.gif . hehe.

Statico
  • Statico

    Programmer

  • Members
  • Joined: 19 Mar 2005

#16

Posted 12 January 2006 - 07:04 PM

I would assume a detailed scripting guide will be packaged with the release anyway.

Shizz
  • Shizz

    <3 SA:MP

  • Members
  • Joined: 12 Jun 2005

#17

Posted 12 January 2006 - 08:26 PM

Someone once posted something about it on the blog, maybe there's some archive, don't know tounge.gif . The post contained quite a bit of interesting info.

Statico
  • Statico

    Programmer

  • Members
  • Joined: 19 Mar 2005

#18

Posted 12 January 2006 - 09:49 PM

Yea I think kyeman made a blog post when the idea was first introduced.

And by the way, you might want to take a look at http://www.compuphase.com/small.htm

Spooky
  • Spooky

    Prince of the Yolkfolk

  • Members
  • Joined: 13 Jan 2002

#19

Posted 12 January 2006 - 11:40 PM

Actually the url is http://www.compuphas...m/pawn/pawn.htm

njr1489
  • njr1489

    MP5

  • Members
  • Joined: 05 Jan 2005

#20

Posted 12 January 2006 - 11:51 PM

Looks easy to understand in my view... as long as I know the right commands.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users