Problem with larger size of string in .plist file in cocos2dx

  • freela
    Likes 0

    Problem Description

    I have an cocos project in cocos2dx 3.13.1. I have used .plist file to fetch texts for my application. Previously there was only about 80 lines of texts (each line having around 24-25 characters), now according to clients requirement, text will be about 200-250 lines of text. When I increased text, only background image will displayed (text not displayed).  I have used data type string for storing data in .plist file. Is there any restriction in size of text in .plist file? I am stuck in this problem since last week. Is there any solution to this issue? Thanks in advance.

  • Sonar Systems admin
    Likes 0

    Could you show a screenshot of the problem.


    This reply has been verified.
  • freela
    Likes 0

    There is no specific screenshot that shows error. my problem is not displaying text in game ending screen after increasing text size. below is the content of a .plist file which i have used.

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    	<key>Opening</key>
    	<dict>
    		<key>Text</key>
    		<string>Lorem Ipsum is simply dummy
    			 text of the printing and
    			 typesetting industry.
    			 Lorem Ipsum has been the industry's
    			 standard dummy text ever since the 1500s,
    			 when an unknown printer
    			 took a galley of type and scrambled
    			 it to make a type specimen book.
    			 It has survived not only five centuries,
    			 but also the leap into
    			 electronic typesetting,
    			 remaining essentially
    			 unchanged. It was popularised
    			 in the 1960s with the release of
    			 Letraset sheets containing
    			 Lorem Ipsum passages,
    			 and more recently with
    			 desktop publishing software
    			 like Aldus PageMaker
    			 including versions of Lorem
    			 Ipsum.
    			 Lorem Ipsum is simply dummy
     			 text of the printing and
     			 typesetting industry.
     			 Lorem Ipsum has been the industry's
     			 standard dummy text ever since the 1500s,
     			 when an unknown printer
     			 took a galley of type and scrambled
     			 it to make a type specimen book.
     			 It has survived not only five centuries,
     			 but also the leap into
     			 electronic typesetting,
     			 remaining essentially
     			 unchanged. It was popularised
     			 in the 1960s with the release of
     			 Letraset sheets containing
     			 Lorem Ipsum passages,
     			 and more recently with
     			 desktop publishing software
     			 like Aldus PageMaker
     			 including versions of Lorem
     			 Ipsum.
    			 Lorem Ipsum is simply dummy
     			 text of the printing and
     			 typesetting industry.
     			 Lorem Ipsum has been the industry's
     			 standard dummy text ever since the 1500s,
     			 when an unknown printer
     			 took a galley of type and scrambled
     			 it to make a type specimen book.
     			 It has survived not only five centuries,
     			 but also the leap into
     			 electronic typesetting,
     			 remaining essentially
     			 unchanged. It was popularised
     			 in the 1960s with the release of
     			 Letraset sheets containing
     			 Lorem Ipsum passages,
     			 and more recently with
     			 desktop publishing software
     			 like Aldus PageMaker
     			 including versions of Lorem
     			 Ipsum.
     </string>
    		<key>Bgm</key>
    		<string>bgm_02.mp3</string>
    	</dict>
    	<key>Ending</key>
    	<dict>
    		<key>Text</key>
            <string>
    					Lorem Ipsum is simply dummy
    					 text of the printing and
    					 typesetting industry.
    					 Lorem Ipsum has been the industry's
    					 standard dummy text ever since the 1500s,
    					 when an unknown printer
    					 took a galley of type and scrambled
    					 it to make a type specimen book.
    					 It has survived not only five centuries,
    					 but also the leap into
    					 electronic typesetting,
    					 remaining essentially
    					 unchanged. It was popularised
    					 in the 1960s with the release of
    					 Letraset sheets containing
    					 Lorem Ipsum passages,
    					 and more recently with
    					 desktop publishing software
    					 like Aldus PageMaker
    					 including versions of Lorem
    					 Ipsum.
    					 Lorem Ipsum is simply dummy
    		 			 text of the printing and
    		 			 typesetting industry.
    		 			 Lorem Ipsum has been the industry's
    		 			 standard dummy text ever since the 1500s,
    		 			 when an unknown printer
    		 			 took a galley of type and scrambled
    		 			 it to make a type specimen book.
    		 			 It has survived not only five centuries,
    		 			 but also the leap into
    		 			 electronic typesetting,
    		 			 remaining essentially
    		 			 unchanged. It was popularised
    		 			 in the 1960s with the release of
    		 			 Letraset sheets containing
    		 			 Lorem Ipsum passages,
    		 			 and more recently with
    		 			 desktop publishing software
    		 			 like Aldus PageMaker
    		 			 including versions of Lorem
    		 			 Ipsum.
    					 Lorem Ipsum is simply dummy
    		 			 text of the printing and
    		 			 typesetting industry.
    		 			 Lorem Ipsum has been the industry's
    		 			 standard dummy text ever since the 1500s,
    		 			 when an unknown printer
    		 			 took a galley of type and scrambled
    		 			 it to make a type specimen book.
    		 			 It has survived not only five centuries,
    		 			 but also the leap into
    		 			 electronic typesetting,
    		 			 remaining essentially
    		 			 unchanged. It was popularised
    		 			 in the 1960s with the release of
    		 			 Letraset sheets containing
    		 			 Lorem Ipsum passages,
    		 			 and more recently with
    		 			 desktop publishing software
    		 			 like Aldus PageMaker
    		 			 including versions of Lorem
    		 			 Ipsum.
    					 Lorem Ipsum is simply dummy
    		 			 text of the printing and
    		 			 typesetting industry.
    		 			 Lorem Ipsum has been the industry's
    		 			 standard dummy text ever since the 1500s,
    		 			 when an unknown printer
    		 			 took a galley of type and scrambled
    		 			 it to make a type specimen book.
    		 			 It has survived not only five centuries,
    		 			 but also the leap into
    		 			 electronic typesetting,
    		 			 remaining essentially
    		 			 unchanged. It was popularised
    		 			 in the 1960s with the release of
    		 			 Letraset sheets containing
    		 			 Lorem Ipsum passages,
    		 			 and more recently with
    		 			 desktop publishing software
    		 			 like Aldus PageMaker
    		 			 including versions of Lorem
    		 			 Ipsum.
    		 			 Lorem Ipsum is simply dummy
    	  			 text of the printing and
    	  			 typesetting industry.
    	  			 Lorem Ipsum has been the industry's
    	  			 standard dummy text ever since the 1500s,
    	  			 when an unknown printer
    	  			 took a galley of type and scrambled
    	  			 it to make a type specimen book.
    	  			 It has survived not only five centuries,
    	  			 but also the leap into
    	  			 electronic typesetting,
    	  			 remaining essentially
    	  			 unchanged. It was popularised
    	  			 in the 1960s with the release of
    	  			 Letraset sheets containing
    	  			 Lorem Ipsum passages,
    	  			 and more recently with
    	  			 desktop publishing software
    	  			 like Aldus PageMaker
    	  			 including versions of Lorem
    	  			 Ipsum.
    	 			 	 Lorem Ipsum is simply dummy
    	  			 text of the printing and
    	  			 typesetting industry.
    	  			 Lorem Ipsum has been the industry's
    	  			 standard dummy text ever since the 1500s,
    	  			 when an unknown printer
    	  			 took a galley of type and scrambled
    	  			 it to make a type specimen book.
    	  			 It has survived not only five centuries,
    	  			 but also the leap into
    	  			 electronic typesetting,
    	  			 remaining essentially
    	  			 unchanged. It was popularised
    	  			 in the 1960s with the release of
    	  			 Letraset sheets containing
    	  			 Lorem Ipsum passages,
    	  			 and more recently with
    	  			 desktop publishing software
    	  			 like Aldus PageMaker
    	  			 including versions of Lorem
    	  			 Ipsum.
    					 Lorem Ipsum is simply dummy
    		 			 text of the printing and
    		 			 typesetting industry.
    		 			 Lorem Ipsum has been the industry's
    		 			 standard dummy text ever since the 1500s,
    		 			 when an unknown printer
    		 			 took a galley of type and scrambled
    		 			 it to make a type specimen book.
    		 			 It has survived not only five centuries,
    		 			 but also the leap into
    		 			 electronic typesetting,
    		 			 remaining essentially
    		 			 unchanged. It was popularised
    		 			 in the 1960s with the release of
    		 			 Letraset sheets containing
    		 			 Lorem Ipsum passages,
    		 			 and more recently with
    		 			 desktop publishing software
    		 			 like Aldus PageMaker
    		 			 including versions of Lorem
    		 			 Ipsum.
    		 			 Lorem Ipsum is simply dummy
    	  			 text of the printing and
    	  			 typesetting industry.
    	  			 Lorem Ipsum has been the industry's
    	  			 standard dummy text ever since the 1500s,
    	  			 when an unknown printer
    	  			 took a galley of type and scrambled
    	  			 it to make a type specimen book.
    	  			 It has survived not only five centuries,
    	  			 but also the leap into
    	  			 electronic typesetting,
    	  			 remaining essentially
    	  			 unchanged. It was popularised
    	  			 in the 1960s with the release of
    	  			 Letraset sheets containing
    	  			 Lorem Ipsum passages,
    	  			 and more recently with
    	  			 desktop publishing software
    	  			 like Aldus PageMaker
    	  			 including versions of Lorem
    	  			 Ipsum.
    	 			 	 Lorem Ipsum is simply dummy
    	  			 text of the printing and
    	  			 typesetting industry.
    	  			 Lorem Ipsum has been the industry's
    	  			 standard dummy text ever since the 1500s,
    	  			 when an unknown printer
    	  			 took a galley of type and scrambled
    	  			 it to make a type specimen book.
    	  			 It has survived not only five centuries,
    	  			 but also the leap into
    	  			 electronic typesetting,
    	  			 remaining essentially
    	  			 unchanged. It was popularised
    	  			 in the 1960s with the release of
    	  			 Letraset sheets containing
    	  			 Lorem Ipsum passages,
    	  			 and more recently with
    	  			 desktop publishing software
    	  			 like Aldus PageMaker
    	  			 including versions of Lorem
    	  			 Ipsum.</string>
    		<key>Bgm</key>
    		<string>bgm_07.mp3</string>
    	</dict>
    	<key>Ending_2</key>
    	<dict>
    		<key>Text</key>
    		<string></string>
    		<key>Bgm</key>
    		<string></string>
    	</dict>
    	<key>Ending_3</key>
    	<dict>
    		<key>Text</key>
    		<string></string>
    		<key>Bgm</key>
    		<string></string>
    	</dict>
    	<key>Ending_4</key>
    	<dict>
    		<key>Text</key>
    		<string></string>
    		<key>Bgm</key>
    		<string></string>
    	</dict>
    	<key>10</key>
    	<dict>
    		<key>Text</key>
    <string>Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.
    	 Lorem Ipsum is simply dummy
    	 text of the printing and
    	 typesetting industry.
    	 Lorem Ipsum has been the industry's
    	 standard dummy text ever since the 1500s,
    	 when an unknown printer
    	 took a galley of type and scrambled
    	 it to make a type specimen book.
    	 It has survived not only five centuries,
    	 but also the leap into
    	 electronic typesetting,
    	 remaining essentially
    	 unchanged. It was popularised
    	 in the 1960s with the release of
    	 Letraset sheets containing
    	 Lorem Ipsum passages,
    	 and more recently with
    	 desktop publishing software
    	 like Aldus PageMaker
    	 including versions of Lorem
    	 Ipsum.</string>
    		<key>Bgm</key>
    		<string>bgm_04.mp3</string>
    	</dict>
    	<key>11</key>
    	<dict>
    		<key>Text</key>
            <string>Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.
    				 Lorem Ipsum is simply dummy
    				 text of the printing and
    				 typesetting industry.
    				 Lorem Ipsum has been the industry's
    				 standard dummy text ever since the 1500s,
    				 when an unknown printer
    				 took a galley of type and scrambled
    				 it to make a type specimen book.
    				 It has survived not only five centuries,
    				 but also the leap into
    				 electronic typesetting,
    				 remaining essentially
    				 unchanged. It was popularised
    				 in the 1960s with the release of
    				 Letraset sheets containing
    				 Lorem Ipsum passages,
    				 and more recently with
    				 desktop publishing software
    				 like Aldus PageMaker
    				 including versions of Lorem
    				 Ipsum.</string>
    		<key>Bgm</key>
    		<string>bgm_05.mp3</string>
    	</dict>
    	<key>12</key>
    	<dict>
    		<key>Text</key>
    <string>Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.
     Lorem Ipsum is simply dummy
     text of the printing and
     typesetting industry.
     Lorem Ipsum has been the industry's
     standard dummy text ever since the 1500s,
     when an unknown printer
     took a galley of type and scrambled
     it to make a type specimen book.
     It has survived not only five centuries,
     but also the leap into
     electronic typesetting,
     remaining essentially
     unchanged. It was popularised
     in the 1960s with the release of
     Letraset sheets containing
     Lorem Ipsum passages,
     and more recently with
     desktop publishing software
     like Aldus PageMaker
     including versions of Lorem
     Ipsum.</string>
    		<key>Bgm</key>
    		<string>bgm_06.mp3</string>
    	</dict>
    </dict>
    </plist>
    

     


    This reply has been verified.
  • Sonar Systems admin
    Likes 0

    How is it if you have less text?

  • freela
    Likes 0

    it will worl with less texts. i have tried with 120 lines of texts, and it worked. but when  increase to around 170 lines of texts, it doesnot work.

  • Sonar Systems admin
    Likes 0

    At which point does it break, try 121, 122, 123 etc

  • freela
    Likes 0

    i have tested with multiple devices in different platforms. it worked for samsung galaxy s7 edge and sony xperia z5 properly. text is not displayed in device sony xperia z1. For ios device, i have tested in iphone 6 and iphone 6s+, text is not displayed in both the devices. i have tested by using 121 lines of texts. i have checked all the codes, and there is no any restriction for strring length.

  • Sonar Systems admin
    Likes 0

    z1 doesn’t display at all?

  • freela
    Likes 0

    Yes. Z1 doesnot display any long text. Other short text are displayed.

  • Sonar Systems admin
    Likes 0

    Can you show me screenshots of all the devices with different text lengths.

  • freela
    Likes 0

    After adding long texts no text will be displayed, only background image is displayed in the screen. now i have found found following error in console when there is long text..

    i have tried solutions available from stackoverflow and cocos forum. nothing worked for me.

     

  • Sonar Systems admin
    Likes 0

    Does this error appear with all text lengths?

  • freela
    Likes 0

    No. This error occurs only with the long text.

  • Sonar Systems admin
    Likes 0

    It can’t store that much data, you will need to split larger pieces of text over multiple variables.

  • freela
    Likes 0

    Thankyou for your suggestions. Now I am back to work after a long vacation :).

    This problem is still not solved.

    Please Check following code section where i have

     CCLOG("Ending Text Log : %s", text.c_str() );

    _labelEnding->setString(text);

     CCLOG("Ending Text Log : %s", text.c_str() );

    _labelEnding->setDimensions(_labelEnding->getContentSize().width, _labelEnding->getContentSize().height);

    //code to create sequence

    _bakcbg->runAction(Sequence::create(
                                                        FadeTo::create(1,60),
                                                        TargetedAction::create(_menuSkip,FadeTo::create(1,255)),  //SKIP
                                                        DelayTime::create(1),    //3 seconds WAIT

                                                        TargetedAction::create(_labelEnding,Sequence::create(scrollactions)), //SCROLL

                                                        FadeTo::create(3,255),  //Brighten
                                                        DelayTime::create(4),   // WAIT 3 seconds
                                                        FadeTo::create(1,0),  //BG 表示
                                                        CallFunc::create(CC_CALLBACK_0(labelEnding::actionEnding2,this)),  //call an ending method
                                                        NULL
                                                      ));

    In above code, all the texts are logged properly in console, but the text are not displayed in iphone5, iphone 6 and iphone 6s+ and sony xperia z1 and displayed in smsung galaxy s7 edge and xperia z5.

    When i replaced fourth line of the above code by below code

    _labelEnding->setDimensions(_labelEnding->getContentSize().width, 4000);

    Texts are displayed in all the devices, but only displayed to 113 lines of text in every devices and the the error i have mentioned in above (glError) are also not displayed in console.

     

  • Sonar Systems admin
    Likes 0

    What is the end result you are trying to achieve, maybe we can take a different route.

  • freela
    Likes 0

    End Result we want is to scroll (display) all the text in screen.

  • Sonar Systems admin
    Likes 0

    Have you tried storing the text in multiple files?

  • freela
    Likes 0

    i have tried by changing plist format. In previous plist file, i have stored data in string format and fetched all the textg data. Now i have stored the data in array (as shown in below snapshot), so the text data are accessed in an array and placed the array data one by one in sequence.


  • freela
    Likes 0


  • freela
    Likes 0

    All the texts are now displayed, but next text is displayed once the previous text is completely completed. (ie the texts moves up from bottom and disaapears from the top) Texts are not displayed serially on screen. I think we need to run second task (action) 1-2 second before completing first task (action). Is it possible?

  • Sonar Systems admin
    Likes 0

    You can schedule actions, take a look at scheduling

Login to reply