Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - MEGAMIND

#691
I found many according to this question

1.Custom radio staions?
2.Host for gta radios

so here i am with a little knowledge about this stuff, which may or maynot be helpfull for few

ok so without any further discussion here u go


first make  a new folder and rename it as radio (or whatever) now major part is this u would have to make a file named as listen.pls here the listen.pls will contain ur streaming files ok so lets built a listen.pls as i said before creat a filenamed as listen.pls (using note pad.txt rename it as listen.pls) now edit it/ open it and do this kindly donot modify until u have the complete knowledge of these stuff for ur own custom radio station (where u would like to upload ur own songs which will loop out)

the url below are hosted so u can put ur own url instead of mine

so to actually make it run u have to do this [playlist] -> which will tell the host and file that these are the below shits which are required to run
file 1: -> is the path of ur radio
title 1:- the titlle of ur radio to  broadcast
lenght1=-1 // eh idk much about it but it was said to be -1 default in an article
numberofenteries // define that how much files have u addded to it 2 3 or 1
version: // leave it as default 2

[playlist]
File1=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/c/2.mp3
Title1=WEBNET RADIO English #1
Length1=-1

File2=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/c/1.mp3
Title2=WEBNET RADIO English #2
Length2=-1

NumberOfEntries=2
Version=2

ok now for the real stations we do this

[playlist]
File1=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/h/tunein-station.pls
Title1=WEBNET RADIO Hollywood #1
Length1=-1

File2=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/h/tunein1-station.pls
Title2=WEBNET RADIO Hollywood #2
Length2=-1

NumberOfEntries=2
Version=2

now make a newfolder in the same directory and rename it as stream, within the stream obviously many of u have ur own taste of songs so make subfoldders like h for hollywood songs, b for bollywood ,gta for gta radios etc etc and then add ur songs.mp3 to those folders now all u  need is an html hosting service which is netlify ofc one of the best ik yet or u can start ur own host if u have a vps

still having issues discord me MEGAMIND#8033 or u can find me on vcmp discord channel too


if u wanna know what does tunein-station.pls is so its simple its a radio station url forwarded by a company to an ip
which livecasts and then other teams comeup on same ip to livecast or braodcast there show and it continues....

so what do they have inside tunein-station.pls? they ahve something like this

[playlist]
numberofentries=1
File1=http://77.168.22.74:8008/stream
Title1=(#1 - 30/250) AMW HIPHOP | Amsterdams Most Wanted UNDERGROUND HIPHOP | HD stream
Length1=-1
Version=2


now where to host ir i already told u that either use locahost xampp software and portforward it

or use other hosting sites there are many free sites available out there especaily html based
#692
Quote from: rww on Jul 23, 2018, 10:59 AMBut I need to possible to upload this stuff.
i see kindly download all there radio stations if there main station is dead

and do the following process to get them online again
#693
first make  a new folder and rename it as radio (or whatever) now major part is this u would have to make a file named as listen.pls here the listen.pls will contain ur streaming files ok so lets built a listen.pls as i said before creat a filenamed as listen.pls now edit it/ open it and do this kindly donot modify until u have the complete knowledge of these stuff for ur own custom radio station (where u would like to upload ur own songs which will loop out)

[playlist]
File1=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/c/2.mp3
Title1=WEBNET RADIO English #1
Length1=-1

File2=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/c/1.mp3
Title2=WEBNET RADIO English #2
Length2=-1

NumberOfEntries=2
Version=2

ok now for the real stations we do this

[playlist]
File1=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/h/tunein-station.pls
Title1=WEBNET RADIO Hollywood #1
Length1=-1

File2=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/h/tunein1-station.pls
Title2=WEBNET RADIO Hollywood #2
Length2=-1

NumberOfEntries=2
Version=2

now make a newfolder in the same directory and rename it as stream, within the stream obviously many of u have ur own taste of songs so make subfoldders like h for hollywood songs, b for bollywood ,gta for gta radios etc etc and then add ur songs.mp3 to those folders now all u  need is an html hosting service which is netlify ofc one of the best ik yet or u can start ur own host if u have a vps

still having issues discord me MEGAMIND#8033 or u can find me on vcmp discord channel too


if u wanna know what does tunein-station.pls is so its simple its a radio station url forwarded by a company to an ip
which livecasts and then other teams comeup on same ip to livecast or braodcast there show and it continues....

so what do they have inside tunein-station.pls? they ahve something like this

[playlist]
numberofentries=1
File1=http://77.168.22.74:8008/stream
Title1=(#1 - 30/250) AMW HIPHOP | Amsterdams Most Wanted UNDERGROUND HIPHOP | HD stream
Length1=-1
Version=2
#694
idk maybe it will help ya or not but it sure helped me

actaully my host is always here :P

http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/

if u wanna learn how to make it shoot me a pm or discord

+ hosting is easy once u setup everything
#695
i have made the complete host function using php and works in vcmp

probably for anygame which has a function to listen radios
#696
Support / Re: readinistring
Jul 23, 2018, 08:45 AM
Quote from: ! on Jul 23, 2018, 08:41 AMOkay after learning some stuff about ini
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/WriteIniString
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/ReadIniString

Quote from: MEGAMIND on Jul 21, 2018, 06:18 PMmy WriteIniString is
WriteIniString("objects.ini","autosaved",i.tostring(), "CreateObject("+o.Model+","+o.World+",Vector"+o.Pos+","+o.Alpha+").RotateToEuler(Vector"+o.RotationEuler+",1);"); }
Quote from: MEGAMIND on Jul 23, 2018, 08:04 AMumm anyone i did this too but i dont see anyobject

NewTimer("LoadAllObjects",10000,1);

function LoadAllObjects()
{ local i = 0;
  while(true)
  {
    local str = ReadIniString( "objects.ini", "objects", i.tostring() );
    if(!str) break;
    else
    {
      local a = compilestring(str);
      a();

      i++;
    }
  }
  for(local a=0;a<GetObjectCount();a++)
  {
      FindObject(a).TrackingShots = true;
  }
}

Your mistake is the string section in both of these functions need to be same but you have used autosaved in WriteIniString while objects in ReadIniString
bool WriteIniString( string filename, string section, string var, string value )
string ReadIniString( string filename, string section, string var )

Since @Athanatos has already answered.
Use this and check console if it gives any message.
WriteIniString( "objects.ini", "autosaved", i.tostring(), "CreateObject( "+o.Model+", "+o.World+", Vector"+o.Pos+", "+o.Alpha+" ).RotateToEuler( Vector"+o.RotationEuler+", 1 );" );

function LoadAllObjects()
{
local i = 0;
while(true)
{
local str = ReadIniString( "objects.ini", "autosaved", i.tostring() );
if( !str ) break;
else
{
local eCompile = compilestring( str );
eCompile();
print( "Created Object: "+i );
i++;
}
}
for( local j = 0; j < GetObjectCount(); a++ )
{
FindObject(a).TrackingShots = true;
}
}
LoadAllObjects();

no errors and still not working
#697
Support / Re: readinistring
Jul 23, 2018, 08:04 AM
umm anyone i did this too but i dont see anyobject

NewTimer("LoadAllObjects",10000,1);

function LoadAllObjects()
{ local i = 0;
  while(true)
  {
    local str = ReadIniString( "objects.ini", "objects", i.tostring() );
    if(!str) break;
    else
    {
      local a = compilestring(str);
      a();

      i++;
    }
  }
  for(local a=0;a<GetObjectCount();a++)
  {
      FindObject(a).TrackingShots = true;
  }
}

#698
try the plugins with 32bit
#699
Support / Re: readinistring
Jul 22, 2018, 05:51 PM
*Bump* pls i do want solution to this
#700
Support / Re: readinistring
Jul 22, 2018, 10:50 AM
Quote from: =RK=MarineForce on Jul 22, 2018, 10:13 AMprint it? u want see whats in object.ini?

print("objects.ini"); xDD

At marine force pls stay out of this lol
#701
Support / Re: readinistring
Jul 22, 2018, 09:58 AM
Quote from: Athanatos on Jul 22, 2018, 09:43 AMYou need to use that loop part. That's there's isn't a variable named i.
how ? u do know that im weak at ini
#702
Support / Re: readinistring
Jul 22, 2018, 08:56 AM
Quote from: EK.IceFlake on Jul 22, 2018, 08:23 AM
Quote from: Doom_Kill3R on Jul 22, 2018, 07:50 AM
Quote from: Stormeus on Jul 21, 2018, 07:37 PMIf you're going to the effort of writing Squirrel code in an INI file, why not just get rid of the INI part and use dofile?

He means since you are saving the data in ini as pure squirrel code, you can directly use dofile to load all the CreateObject statements from the ini file instead of reading them from ini as strings and then executing them/creating objects with them.

try
dofile("objects.ini")and it should load all the objects

You can't dofile an ini, it'll cause errors. You should save them to a .nut file.
yeeep exactly got errors




and if i do this

if ( ReadIniString("objects.ini","objects",i.tostring()) == null )
    {
       print("nothing loads up");
    }

the console startsup normally but the objects doesnt load up saying



whether it's onplayerjoin or onscriptload

#703
Support / Re: readinistring
Jul 22, 2018, 08:01 AM
;) thanks doom, i didnt got Stormeus messeage in the firstplace....
#704
Support / Re: readinistring
Jul 22, 2018, 07:08 AM
Quote from: vitogta on Jul 22, 2018, 06:53 AMeval is evil
there was no reason to comment that
#705
Support / Re: readinistring
Jul 22, 2018, 06:23 AM
Quote from: Stormeus on Jul 21, 2018, 07:37 PMIf you're going to the effort of writing Squirrel code in an INI file, why not just get rid of the INI part and use dofile?
i had that idea befor but how du u right something in a dofile???