IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 perform anim from ini file?

 
Saint Burak  
Posted: Friday, Jul 20 2012, 18:56
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



Code:

CODE
0AF4: v$afn = read_string_from_ini_file "cleo\GOD MENU.ini" section "Animation" key "AnimFile"
0AF4: v$an = read_string_from_ini_file "cleo\GOD MENU.ini" section "Animation" key "AnimName"
04ED: load_animation v$afn
if
04EE:   animation v$afn loaded
jf @DANS_28
0605: actor $PLAYER_ACTOR perform_animation_sequence v$an IFP_file v$afn 4.0 loop 0 0 0 0 time -1 // versionA


ini file:

CODE
[Animation]
AnimFile=INT_OFFICE
AnimName=OFF_SIT_TYPE_LOOP


CJ does not perform animation and game does not crash.what is the problem?





PM
  Top
 

 
Link2012  
Posted: Saturday, Jul 21 2012, 14:30
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



String vars can only store 15chars
PMMSN
  Top
 

 
Saint Burak  
Posted: Saturday, Jul 21 2012, 16:49
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



Yeah when I write less than 15 char, it works but how can I fix it?
PM
  Top
 

 
oksa8  
Posted: Saturday, Jul 21 2012, 17:12
Quote Post


Just call me Oksu
Group Icon
Group: Members
Joined: Sep 30, 2010

sf.gif

Member Award




Keep filenames shorter than 15 characters. No other "fix" for it.
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Saturday, Jul 21 2012, 17:26
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



QUOTE (oksa8 @ Saturday, Jul 21 2012, 17:12)
Keep filenames shorter than 15 characters. No other "fix" for it.

there is must be.There are many anim names longer than 15 char in gta sa
PM
  Top
 

 
Link2012  
Posted: Saturday, Jul 21 2012, 17:29
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



Those anims in SCM Files are loaded with a immediate string, not with a string variable (load_animation "Long animation name wowwww")








PMMSN
  Top
 

 
Saint Burak  
Posted: Saturday, Jul 21 2012, 17:51
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



I hate limits and thanks everyone.
PM
  Top
 

 
HeresOtis  
Posted: Saturday, Jul 21 2012, 18:46
Quote Post


Mark Chump
Group Icon
Group: Members
Joined: Apr 29, 2011

XXXXX



Try this:
CODE
0AF4: v$afn = read_string_from_ini_file "cleo\GOD MENU.ini" section "Animation" key "AnimFile"
0AF4: v$an = read_string_from_ini_file "cleo\GOD MENU.ini" section "Animation" key "AnimName"

repeat
   04ED: load_animation v$afn
   wait 0
until 04EE:   animation v$afn loaded

0AC8: 0@ = allocate_memory_size 20  // 20 is number of characters, can be changed to higher number for longer names
0AD3: 0@ = format "%s" v$an
0605: actor $PLAYER_ACTOR perform_animation_sequence 0@ IFP_file v$afn 4.0 loop 0 0 0 0 time -1 // versionA
0AC9: free_allocated_memory 0@
PM
  Top
 

 
Link2012  
Posted: Saturday, Jul 21 2012, 19:01
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



Pointer to strings only works with CLEO Opcodes.
PMMSN
  Top
 

 
DK22Pac  
Posted: Saturday, Jul 21 2012, 20:40
Quote Post


Assembly!
Group Icon
Group: Members
Joined: Apr 12, 2009

un.gif

XXXXX



Yes but why do you think he can't use CLEO?
Users WebsitePM
  Top
 

 
Link2012  
Posted: Saturday, Jul 21 2012, 21:14
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



I didn't say that he can't use CLEO Opcodes... I meant that 0605 (A San Andreas opcode), will not accept a string pointer in a string param.
PMMSN
  Top
 

 
oksa8  
Posted: Saturday, Jul 21 2012, 21:24
Quote Post


Just call me Oksu
Group Icon
Group: Members
Joined: Sep 30, 2010

sf.gif

Member Award




And if I remember correctly, he's working on a TC-mod with another GTAForums-member, so I think they'll be using more main.scm than CLEO's.
Users WebsitePM
  Top
 

 
Saint Burak  
Posted: Saturday, Jul 21 2012, 21:30
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Nov 4, 2010

XXXXX



lol.gif no no I'm not working on main.scm and TC mod lol.gif I'm trying to make an trainer for our Turkish people lol.gif
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG