Quantcast

Jump to content

» «
Photo

3-VC-SA IPL/IDE Converter

5 replies to this topic
The_Grudge
  • The_Grudge

    ŧ The_Grudge Ŧ

  • BUSTED!
  • Joined: 08 Jan 2005

#1

Posted 14 July 2005 - 01:29 PM

How about making an IPL/IDE converter compatible with 3/VC/SA? =)


A question also: Does anyone know if a mapping program thatīs compatible with SA is on itīs way?

RainingAcid
  • RainingAcid

    Hustler

  • Members
  • Joined: 28 Mar 2005

#2

Posted 15 July 2005 - 01:52 AM

Nice idea! Dunno about the mapping...

X-Seti
  • X-Seti

    Retro Modder

  • Members
  • Joined: 28 Jun 2005
  • Mars

#3

Posted 15 July 2005 - 02:21 PM

this is something worth looking into.

but SA stores some objects outside the map files.. like traffic lights..

smile.gif

pep_gta
  • pep_gta

    Player Hater

  • Members
  • Joined: 05 Jan 2005

#4

Posted 19 July 2005 - 08:24 AM

could you elabroate where those extra objects are stored plz

Opius
  • Opius

    General

  • Members
  • Joined: 27 Jun 2002

#5

Posted 19 July 2005 - 08:30 AM

They're in the binary IPL files in the IMG.

Why bother converting the IPLs? Unless you've already got the models converted, installed and working properly, they're useless. If you did, then making a script to do it would be a cakewalk. Around fifteen lines of code in PHP, at most.

[EDIT]Done it twelve. VC to SA.
CODE
$handle = fopen("illcomSE.ipl", "r");
$result = fread($handle,filesize("illcomSE.ipl"));
  $result2 = explode((chr(13) . chr(10)), $result);
$i = 0;
while ($i < count($result2))
 {
 $result4 = explode(',', $result2[$i]);
 #print_r($result4);
 echo $result4[0].",".$result4[1].",".$result4[2].",".$result4[3].",".$result4[4].",".$result4[9].",".$result4[10].",".$result4[11].",".$result4[12].", -1";
 echo"<BR>";
 $i++;
 }

Sample output.
CODE
2670, illcom_c2_r11 , 0 , 568.235 , -1371.58 , 0 , 0 , 0 , 1, -1
2680, illcom_c2_r12 , 0 , 648.019 , -1552.45 , 0 , 0 , 0 , 1, -1
2690, illcom_c3_r9 , 0 , 553.282 , -1160.98 , 0 , 0 , 0 , 1, -1
2700, illcom_c3_r10 , 0 , 563.511 , -1266.03 , 0 , 0 , 0 , 1, -1
2710, illcom_c3_r11 , 0 , 649.969 , -1362.85 , 0 , 0 , 0 , 1, -1
2720, illcom_c3_r12 , 0 , 752.883 , -1580.94 , 0 , 0 , 0 , 1, -1
2740, illcom_c4_r10 , 0 , 663.24 , -1275.48 , 0 , 0 , 0 , 1, -1

All flags are set to -1 since it seems to be a nice safe value.

But untested. Use at your own risk.

The_Grudge
  • The_Grudge

    ŧ The_Grudge Ŧ

  • BUSTED!
  • Joined: 08 Jan 2005

#6

Posted 19 July 2005 - 12:18 PM

Thank you! =)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users