(solved)write to file without char surrounding it.

Started by FanOfHumor, Wed 27/07/2022 18:38:43

Previous topic - Next topic

FanOfHumor

Is it possible to write to a file without these char  surrounding these numbers.

CreateObject pos=    354    ;     382     dir=0.0 type=Bot3 


I'm fine with  being at the end but the others are a problem.

Crimson Wizard

#1
If you are using File.WriteString or WriteInt, they precede every written value with special data. If you want to write simple text, you need to use File.WriteRawLine and File.ReadRawLineBack.

This is mentioned in the manual:
https://adventuregamestudio.github.io/ags-manual/File.html#filewritestring
https://adventuregamestudio.github.io/ags-manual/File.html#filewriterawline

If you are already using File.WriteRawLine, but it causes this problem, then please post your script.

FanOfHumor

Thanks again.That solved it but there's another problem now.WriteRawLine skips to the next row everytime it places text.
The way I have it is that each placement adds to the last and after those are placed it moves to the next line.
Code: ags
			other[othernum]=Overlay.CreateRoomGraphical(mouse.x-15, mouse.y-15, 4);
			somethingx=String.Format("%d",other[othernum].X);
			somethingy=String.Format("%d",other[othernum].Y);
			File* output = File.Open("scene031.txt", eFileAppend);
			output.WriteRawLine("CreateObject pos=");
			output.WriteRawLine(somethingx);
			output.WriteRawLine("; ");
			output.WriteRawLine(somethingy);
			output.WriteRawLine(" dir=0.0 type=Bot3");
			output.Seek(1, eSeekEnd);
			output.Close();

What I want is for it to not skip every time text is placed.

This is what was output to the txt file.

Code: ags

CreateObject pos=
414
; 
262
 dir=0.0 type=Bot3
CreateObject pos=
414
; 
262
 dir=0.0 type=Bot3
CreateObject pos=
414
; 
262
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
406
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
406
 dir=0.0 type=Bot3
CreateObject pos=
525
; 
411
 dir=0.0 type=Bot3
CreateObject pos=
525
; 
411
 dir=0.0 type=Bot3
CreateObject pos=
474
; 
504
 dir=0.0 type=Bot3
CreateObject pos=
474
; 
504
 dir=0.0 type=Bot3
CreateObject pos=
474
; 
504
 dir=0.0 type=Bot3
CreateObject pos=
470
; 
321
 dir=0.0 type=Bot3
CreateObject pos=
470
; 
321
 dir=0.0 type=Bot3
CreateObject pos=
428
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
428
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
428
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
79
; 
291
 dir=0.0 type=Bot3
CreateObject pos=
79
; 
291
 dir=0.0 type=Bot3
CreateObject pos=
79
; 
291
 dir=0.0 type=Bot3
CreateObject pos=
103
; 
556
 dir=0.0 type=Bot3
CreateObject pos=
103
; 
556
 dir=0.0 type=Bot3
CreateObject pos=
199
; 
166
 dir=0.0 type=Bot3
CreateObject pos=
199
; 
167
 dir=0.0 type=Bot3
CreateObject pos=
294
; 
402
 dir=0.0 type=Bot3
CreateObject pos=
294
; 
401
 dir=0.0 type=Bot3
CreateObject pos=
294
; 
401
 dir=0.0 type=Bot3
CreateObject pos=
147
; 
356
 dir=0.0 type=Bot3
CreateObject pos=
147
; 
356
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
208
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
207
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
207
 dir=0.0 type=Bot3
CreateObject pos=
265
; 
454
 dir=0.0 type=Bot3
CreateObject pos=
265
; 
454
 dir=0.0 type=Bot3
CreateObject pos=
265
; 
454
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
592
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
592
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
592
 dir=0.0 type=Bot3
CreateObject pos=
278
; 
338
 dir=0.0 type=Bot3
CreateObject pos=
278
; 
338
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
553
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
553
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
552
 dir=0.0 type=Bot3
CreateObject pos=
339
; 
386
 dir=0.0 type=Bot3
CreateObject pos=
339
; 
386
 dir=0.0 type=Bot3
CreateObject pos=
395
; 
534
 dir=0.0 type=Bot3
CreateObject pos=
402
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
346
; 
80
 dir=0.0 type=Bot3
CreateObject pos=
346
; 
80
 dir=0.0 type=Bot3
CreateObject pos=
346
; 
80
 dir=0.0 type=Bot3
CreateObject pos=
354
; 
86
 dir=0.0 type=Bot3
CreateObject pos=
667
; 
293
 dir=0.0 type=Bot3
CreateObject pos=
667
; 
295
 dir=0.0 type=Bot3
CreateObject pos=
666
; 
296
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
296
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
546
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
546
 dir=0.0 type=Bot3
CreateObject pos=
486
; 
549
 dir=0.0 type=Bot3
CreateObject pos=
305
; 
248
 dir=0.0 type=Bot3
CreateObject pos=
305
; 
248
 dir=0.0 type=Bot3
CreateObject pos=
305
; 
248
 dir=0.0 type=Bot3
CreateObject pos=
249
; 
383
 dir=0.0 type=Bot3
CreateObject pos=
251
; 
383
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
379
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
381
 dir=0.0 type=Bot3
CreateObject pos=
297
; 
539
 dir=0.0 type=Bot3
CreateObject pos=
297
; 
539
 dir=0.0 type=Bot3
CreateObject pos=
297
; 
538
 dir=0.0 type=Bot3
CreateObject pos=
411
; 
285
 dir=0.0 type=Bot3
CreateObject pos=
412
; 
293
 dir=0.0 type=Bot3
CreateObject pos=
485
; 
484
 dir=0.0 type=Bot3
CreateObject pos=
485
; 
483
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
435
 dir=0.0 type=Bot3
CreateObject pos=
34
; 
606
 dir=0.0 type=Bot3
CreateObject pos=
34
; 
606
 dir=0.0 type=Bot3
CreateObject pos=
37
; 
604
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
639
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
639
 dir=0.0 type=Bot3
CreateObject pos=
356
; 
638
 dir=0.0 type=Bot3
CreateObject pos=
222
; 
665
 dir=0.0 type=Bot3
CreateObject pos=
221
; 
665
 dir=0.0 type=Bot3
CreateObject pos=
219
; 
665
 dir=0.0 type=Bot3
CreateObject pos=
217
; 
659
 dir=0.0 type=Bot3
CreateObject pos=
83
; 
514
 dir=0.0 type=Bot3
CreateObject pos=
83
; 
514
 dir=0.0 type=Bot3
CreateObject pos=
110
; 
239
 dir=0.0 type=Bot3
CreateObject pos=
107
; 
236
 dir=0.0 type=Bot3
CreateObject pos=
104
; 
236
 dir=0.0 type=Bot3
CreateObject pos=
209
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
382
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
382
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
382
 dir=0.0 type=Bot3
CreateObject pos=
61
; 
427
 dir=0.0 type=Bot3
CreateObject pos=
53
; 
414
 dir=0.0 type=Bot3
CreateObject pos=
44
; 
401
 dir=0.0 type=Bot3
CreateObject pos=
53
; 
300
 dir=0.0 type=Bot3
CreateObject pos=
59
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
156
; 
92
 dir=0.0 type=Bot3
CreateObject pos=
156
; 
92
 dir=0.0 type=Bot3
CreateObject pos=
156
; 
92
 dir=0.0 type=Bot3
CreateObject pos=
159
; 
94
 dir=0.0 type=Bot3
CreateObject pos=
316
; 
238
 dir=0.0 type=Bot3
CreateObject pos=
316
; 
238
 dir=0.0 type=Bot3
CreateObject pos=
248
; 
282
 dir=0.0 type=Bot3
CreateObject pos=
248
; 
282
 dir=0.0 type=Bot3
CreateObject pos=
247
; 
283
 dir=0.0 type=Bot3
CreateObject pos=
237
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
219
; 
301
 dir=0.0 type=Bot3
CreateObject pos=
193
; 
319
 dir=0.0 type=Bot3
CreateObject pos=
176
; 
326
 dir=0.0 type=Bot3
CreateObject pos=
159
; 
328
 dir=0.0 type=Bot3
CreateObject pos=
74
; 
202
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
177
 dir=0.0 type=Bot3
CreateObject pos=
47
; 
150
 dir=0.0 type=Bot3
CreateObject pos=
33
; 
126
 dir=0.0 type=Bot3
CreateObject pos=
23
; 
104
 dir=0.0 type=Bot3
CreateObject pos=
20
; 
85
 dir=0.0 type=Bot3
CreateObject pos=
23
; 
73
 dir=0.0 type=Bot3
CreateObject pos=
36
; 
62
 dir=0.0 type=Bot3
CreateObject pos=
61
; 
52
 dir=0.0 type=Bot3
CreateObject pos=
99
; 
44
 dir=0.0 type=Bot3
CreateObject pos=
138
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
163
; 
31
 dir=0.0 type=Bot3
CreateObject pos=
183
; 
31
 dir=0.0 type=Bot3
CreateObject pos=
226
; 
43
 dir=0.0 type=Bot3
CreateObject pos=
270
; 
65
 dir=0.0 type=Bot3
CreateObject pos=
320
; 
95
 dir=0.0 type=Bot3
CreateObject pos=
377
; 
126
 dir=0.0 type=Bot3
CreateObject pos=
451
; 
157
 dir=0.0 type=Bot3
CreateObject pos=
514
; 
183
 dir=0.0 type=Bot3
CreateObject pos=
549
; 
203
 dir=0.0 type=Bot3
CreateObject pos=
562
; 
223
 dir=0.0 type=Bot3
CreateObject pos=
565
; 
252
 dir=0.0 type=Bot3
CreateObject pos=
562
; 
286
 dir=0.0 type=Bot3
CreateObject pos=
542
; 
326
 dir=0.0 type=Bot3
CreateObject pos=
489
; 
381
 dir=0.0 type=Bot3
CreateObject pos=
414
; 
431
 dir=0.0 type=Bot3
CreateObject pos=
340
; 
469
 dir=0.0 type=Bot3
CreateObject pos=
300
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
293
; 
492
 dir=0.0 type=Bot3
CreateObject pos=
300
; 
486
 dir=0.0 type=Bot3
CreateObject pos=
330
; 
462
 dir=0.0 type=Bot3
CreateObject pos=
374
; 
413
 dir=0.0 type=Bot3
CreateObject pos=
434
; 
337
 dir=0.0 type=Bot3
CreateObject pos=
511
; 
240
 dir=0.0 type=Bot3
CreateObject pos=
573
; 
140
 dir=0.0 type=Bot3
CreateObject pos=
592
; 
58
 dir=0.0 type=Bot3
CreateObject pos=
560
; 
3
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
361
; 
9
 dir=0.0 type=Bot3
CreateObject pos=
288
; 
49
 dir=0.0 type=Bot3
CreateObject pos=
248
; 
83
 dir=0.0 type=Bot3
CreateObject pos=
240
; 
93
 dir=0.0 type=Bot3
CreateObject pos=
249
; 
89
 dir=0.0 type=Bot3
CreateObject pos=
313
; 
56
 dir=0.0 type=Bot3
CreateObject pos=
516
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
672
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
632
; 
279
 dir=0.0 type=Bot3
CreateObject pos=
475
; 
337
 dir=0.0 type=Bot3
CreateObject pos=
368
; 
368
 dir=0.0 type=Bot3
CreateObject pos=
349
; 
353
 dir=0.0 type=Bot3
CreateObject pos=
366
; 
299
 dir=0.0 type=Bot3
CreateObject pos=
436
; 
220
 dir=0.0 type=Bot3
CreateObject pos=
552
; 
129
 dir=0.0 type=Bot3
CreateObject pos=
657
; 
49
 dir=0.0 type=Bot3
CreateObject pos=
714
; 
9
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
16
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
16
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
16
 dir=0.0 type=Bot3
CreateObject pos=
700
; 
363
 dir=0.0 type=Bot3
CreateObject pos=
664
; 
469
 dir=0.0 type=Bot3
CreateObject pos=
615
; 
516
 dir=0.0 type=Bot3
CreateObject pos=
557
; 
510
 dir=0.0 type=Bot3
CreateObject pos=
498
; 
457
 dir=0.0 type=Bot3
CreateObject pos=
461
; 
368
 dir=0.0 type=Bot3
CreateObject pos=
472
; 
219
 dir=0.0 type=Bot3
CreateObject pos=
538
; 
141
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
646
; 
119
 dir=0.0 type=Bot3
CreateObject pos=
544
; 
574
 dir=0.0 type=Bot3
CreateObject pos=
438
; 
543
 dir=0.0 type=Bot3
CreateObject pos=
409
; 
506
 dir=0.0 type=Bot3
CreateObject pos=
431
; 
479
 dir=0.0 type=Bot3
CreateObject pos=
518
; 
472
 dir=0.0 type=Bot3
CreateObject pos=
655
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
655
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
655
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
607
; 
621
 dir=0.0 type=Bot3
CreateObject pos=
467
; 
657
 dir=0.0 type=Bot3
CreateObject pos=
395
; 
676
 dir=0.0 type=Bot3
CreateObject pos=
387
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
425
; 
656
 dir=0.0 type=Bot3
CreateObject pos=
516
; 
635
 dir=0.0 type=Bot3
CreateObject pos=
608
; 
641
 dir=0.0 type=Bot3
CreateObject pos=
647
; 
663
 dir=0.0 type=Bot3
CreateObject pos=
617
; 
686
 dir=0.0 type=Bot3
CreateObject pos=
531
; 
690
 dir=0.0 type=Bot3
CreateObject pos=
427
; 
692
 dir=0.0 type=Bot3
CreateObject pos=
374
; 
693
 dir=0.0 type=Bot3
CreateObject pos=
370
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
413
; 
668
 dir=0.0 type=Bot3
CreateObject pos=
487
; 
652
 dir=0.0 type=Bot3
CreateObject pos=
567
; 
652
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
639
; 
683
 dir=0.0 type=Bot3
CreateObject pos=
228
; 
690
 dir=0.0 type=Bot3
CreateObject pos=
219
; 
662
 dir=0.0 type=Bot3
CreateObject pos=
274
; 
640
 dir=0.0 type=Bot3
CreateObject pos=
406
; 
638
 dir=0.0 type=Bot3
CreateObject pos=
550
; 
648
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
35
; 
690
 dir=0.0 type=Bot3
CreateObject pos=
90
; 
637
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
584
 dir=0.0 type=Bot3
CreateObject pos=
376
; 
554
 dir=0.0 type=Bot3
CreateObject pos=
496
; 
551
 dir=0.0 type=Bot3
CreateObject pos=
533
; 
566
 dir=0.0 type=Bot3
CreateObject pos=
500
; 
611
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
323
; 
689
 dir=0.0 type=Bot3
CreateObject pos=
172
; 
681
 dir=0.0 type=Bot3
CreateObject pos=
315
; 
646
 dir=0.0 type=Bot3
CreateObject pos=
473
; 
616
 dir=0.0 type=Bot3
CreateObject pos=
498
; 
623
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
452
; 
653
 dir=0.0 type=Bot3
CreateObject pos=
163
; 
667
 dir=0.0 type=Bot3
CreateObject pos=
277
; 
602
 dir=0.0 type=Bot3
CreateObject pos=
368
; 
593
 dir=0.0 type=Bot3
CreateObject pos=
415
; 
616
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
666
 dir=0.0 type=Bot3
CreateObject pos=
60
; 
634
 dir=0.0 type=Bot3
CreateObject pos=
133
; 
486
 dir=0.0 type=Bot3
CreateObject pos=
241
; 
405
 dir=0.0 type=Bot3
CreateObject pos=
329
; 
394
 dir=0.0 type=Bot3
CreateObject pos=
365
; 
455
 dir=0.0 type=Bot3
CreateObject pos=
337
; 
560
 dir=0.0 type=Bot3
CreateObject pos=
231
; 
655
 dir=0.0 type=Bot3
CreateObject pos=
94
; 
681
 dir=0.0 type=Bot3
CreateObject pos=
15
; 
638
 dir=0.0 type=Bot3
CreateObject pos=
36
; 
507
 dir=0.0 type=Bot3
CreateObject pos=
151
; 
412
 dir=0.0 type=Bot3
CreateObject pos=
328
; 
368
 dir=0.0 type=Bot3
CreateObject pos=
382
; 
392
 dir=0.0 type=Bot3
CreateObject pos=
408
; 
479
 dir=0.0 type=Bot3
CreateObject pos=
353
; 
591
 dir=0.0 type=Bot3
CreateObject pos=
222
; 
670
 dir=0.0 type=Bot3
CreateObject pos=
97
; 
671
 dir=0.0 type=Bot3
CreateObject pos=
38
; 
596
 dir=0.0 type=Bot3
CreateObject pos=
67
; 
416
 dir=0.0 type=Bot3
CreateObject pos=
166
; 
304
 dir=0.0 type=Bot3
CreateObject pos=
282
; 
261
 dir=0.0 type=Bot3
CreateObject pos=
374
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
404
; 
376
 dir=0.0 type=Bot3
CreateObject pos=
359
; 
474
 dir=0.0 type=Bot3
CreateObject pos=
246
; 
508
 dir=0.0 type=Bot3
CreateObject pos=
111
; 
432
 dir=0.0 type=Bot3
CreateObject pos=
84
; 
324
 dir=0.0 type=Bot3
CreateObject pos=
100
; 
247
 dir=0.0 type=Bot3
CreateObject pos=
136
; 
244
 dir=0.0 type=Bot3
CreateObject pos=
213
; 
312
 dir=0.0 type=Bot3
CreateObject pos=
290
; 
421
 dir=0.0 type=Bot3
CreateObject pos=
301
; 
526
 dir=0.0 type=Bot3
CreateObject pos=
232
; 
590
 dir=0.0 type=Bot3
CreateObject pos=
95
; 
588
 dir=0.0 type=Bot3
CreateObject pos=
44
; 
528
 dir=0.0 type=Bot3
CreateObject pos=
56
; 
438
 dir=0.0 type=Bot3
CreateObject pos=
143
; 
364
 dir=0.0 type=Bot3
CreateObject pos=
238
; 
348
 dir=0.0 type=Bot3
CreateObject pos=
295
; 
404
 dir=0.0 type=Bot3
CreateObject pos=
308
; 
508
 dir=0.0 type=Bot3
CreateObject pos=
256
; 
600
 dir=0.0 type=Bot3
CreateObject pos=
139
; 
621
 dir=0.0 type=Bot3
CreateObject pos=
77
; 
562
 dir=0.0 type=Bot3
CreateObject pos=
53
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
118
; 
318
 dir=0.0 type=Bot3
CreateObject pos=
274
; 
242
 dir=0.0 type=Bot3
CreateObject pos=
415
; 
259
 dir=0.0 type=Bot3
CreateObject pos=
447
; 
346
 dir=0.0 type=Bot3
CreateObject pos=
360
; 
447
 dir=0.0 type=Bot3
CreateObject pos=
125
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
13
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
13
; 
518
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
362
 dir=0.0 type=Bot3
CreateObject pos=
131
; 
311
 dir=0.0 type=Bot3
CreateObject pos=
304
; 
339
 dir=0.0 type=Bot3
CreateObject pos=
421
; 
435
 dir=0.0 type=Bot3
CreateObject pos=
441
; 
542
 dir=0.0 type=Bot3
CreateObject pos=
310
; 
609
 dir=0.0 type=Bot3
CreateObject pos=
145
; 
578
 dir=0.0 type=Bot3
CreateObject pos=
32
; 
499
 dir=0.0 type=Bot3
CreateObject pos=
6
; 
402
 dir=0.0 type=Bot3
CreateObject pos=
68
; 
324
 dir=0.0 type=Bot3
CreateObject pos=
188
; 
311
 dir=0.0 type=Bot3
CreateObject pos=
320
; 
374
 dir=0.0 type=Bot3
CreateObject pos=
397
; 
485
 dir=0.0 type=Bot3
CreateObject pos=
369
; 
612
 dir=0.0 type=Bot3
CreateObject pos=
285
; 
614
 dir=0.0 type=Bot3
CreateObject pos=
192
; 
523
 dir=0.0 type=Bot3
CreateObject pos=
145
; 
365
 dir=0.0 type=Bot3
CreateObject pos=
176
; 
229
 dir=0.0 type=Bot3
CreateObject pos=
258
; 
176
 dir=0.0 type=Bot3
CreateObject pos=
344
; 
219
 dir=0.0 type=Bot3
CreateObject pos=
388
; 
345
 dir=0.0 type=Bot3
CreateObject pos=
339
; 
539
 dir=0.0 type=Bot3
CreateObject pos=
269
; 
604
 dir=0.0 type=Bot3
CreateObject pos=
242
; 
580
 dir=0.0 type=Bot3
CreateObject pos=
254
; 
482
 dir=0.0 type=Bot3
CreateObject pos=
336
; 
369
 dir=0.0 type=Bot3
CreateObject pos=
460
; 
311
 dir=0.0 type=Bot3
CreateObject pos=
530
; 
332
 dir=0.0 type=Bot3
CreateObject pos=
530
; 
419
 dir=0.0 type=Bot3
CreateObject pos=
396
; 
548
 dir=0.0 type=Bot3
CreateObject pos=
253
; 
569
 dir=0.0 type=Bot3
CreateObject pos=
189
; 
521
 dir=0.0 type=Bot3
CreateObject pos=
201
; 
417
 dir=0.0 type=Bot3
CreateObject pos=
313
; 
299
 dir=0.0 type=Bot3
CreateObject pos=
486
; 
235
 dir=0.0 type=Bot3
CreateObject pos=
617
; 
256
 dir=0.0 type=Bot3
CreateObject pos=
661
; 
346
 dir=0.0 type=Bot3
CreateObject pos=
572
; 
500
 dir=0.0 type=Bot3
CreateObject pos=
410
; 
561
 dir=0.0 type=Bot3
CreateObject pos=
247
; 
523
 dir=0.0 type=Bot3
CreateObject pos=
161
; 
413
 dir=0.0 type=Bot3
CreateObject pos=
169
; 
275
 dir=0.0 type=Bot3
CreateObject pos=
275
; 
193
 dir=0.0 type=Bot3
CreateObject pos=
445
; 
195
 dir=0.0 type=Bot3
CreateObject pos=
588
; 
264
 dir=0.0 type=Bot3
CreateObject pos=
634
; 
361
 dir=0.0 type=Bot3
CreateObject pos=
512
; 
458
 dir=0.0 type=Bot3
CreateObject pos=
335
; 
447
 dir=0.0 type=Bot3
CreateObject pos=
180
; 
363
 dir=0.0 type=Bot3
CreateObject pos=
117
; 
257
 dir=0.0 type=Bot3
CreateObject pos=
144
; 
206
 dir=0.0 type=Bot3
CreateObject pos=
245
; 
229
 dir=0.0 type=Bot3
CreateObject pos=
347
; 
324
 dir=0.0 type=Bot3
CreateObject pos=
387
; 
434
 dir=0.0 type=Bot3
CreateObject pos=
338
; 
500
 dir=0.0 type=Bot3
CreateObject pos=
231
; 
463
 dir=0.0 type=Bot3
CreateObject pos=
133
; 
365
 dir=0.0 type=Bot3
CreateObject pos=
96
; 
233
 dir=0.0 type=Bot3
CreateObject pos=
119
; 
141
 dir=0.0 type=Bot3
CreateObject pos=
202
; 
125
 dir=0.0 type=Bot3
CreateObject pos=
312
; 
171
 dir=0.0 type=Bot3
CreateObject pos=
405
; 
283
 dir=0.0 type=Bot3
CreateObject pos=
410
; 
373
 dir=0.0 type=Bot3
CreateObject pos=
332
; 
431
 dir=0.0 type=Bot3
CreateObject pos=
210
; 
440
 dir=0.0 type=Bot3
CreateObject pos=
133
; 
388
 dir=0.0 type=Bot3
CreateObject pos=
111
; 
287
 dir=0.0 type=Bot3
CreateObject pos=
176
; 
187
 dir=0.0 type=Bot3
CreateObject pos=
307
; 
149
 dir=0.0 type=Bot3
CreateObject pos=
451
; 
244
 dir=0.0 type=Bot3
CreateObject pos=
456
; 
361
 dir=0.0 type=Bot3
CreateObject pos=
357
; 
450
 dir=0.0 type=Bot3
CreateObject pos=
211
; 
468
 dir=0.0 type=Bot3
CreateObject pos=
120
; 
428
 dir=0.0 type=Bot3
CreateObject pos=
90
; 
333
 dir=0.0 type=Bot3
CreateObject pos=
134
; 
220
 dir=0.0 type=Bot3
CreateObject pos=
252
; 
143
 dir=0.0 type=Bot3
CreateObject pos=
464
; 
174
 dir=0.0 type=Bot3
CreateObject pos=
557
; 
280
 dir=0.0 type=Bot3
CreateObject pos=
556
; 
395
 dir=0.0 type=Bot3
CreateObject pos=
471
; 
470
 dir=0.0 type=Bot3
CreateObject pos=
356
; 
471
 dir=0.0 type=Bot3
CreateObject pos=
256
; 
413
 dir=0.0 type=Bot3
CreateObject pos=
209
; 
315
 dir=0.0 type=Bot3
CreateObject pos=
237
; 
199
 dir=0.0 type=Bot3
CreateObject pos=
360
; 
110
 dir=0.0 type=Bot3
CreateObject pos=
598
; 
84
 dir=0.0 type=Bot3
CreateObject pos=
718
; 
148
 dir=0.0 type=Bot3
CreateObject pos=
718
; 
148
 dir=0.0 type=Bot3
CreateObject pos=
626
; 
354
 dir=0.0 type=Bot3
CreateObject pos=
454
; 
380
 dir=0.0 type=Bot3
CreateObject pos=
314
; 
328
 dir=0.0 type=Bot3
CreateObject pos=
268
; 
225
 dir=0.0 type=Bot3
CreateObject pos=
342
; 
79
 dir=0.0 type=Bot3
CreateObject pos=
498
; 
17
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
14
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
14
 dir=0.0 type=Bot3
CreateObject pos=
660
; 
14
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
275
 dir=0.0 type=Bot3
CreateObject pos=
395
; 
310
 dir=0.0 type=Bot3
CreateObject pos=
206
; 
278
 dir=0.0 type=Bot3
CreateObject pos=
98
; 
160
 dir=0.0 type=Bot3
CreateObject pos=
116
; 
73
 dir=0.0 type=Bot3
CreateObject pos=
224
; 
29
 dir=0.0 type=Bot3
CreateObject pos=
377
; 
50
 dir=0.0 type=Bot3
CreateObject pos=
484
; 
113
 dir=0.0 type=Bot3
CreateObject pos=
507
; 
201
 dir=0.0 type=Bot3
CreateObject pos=
433
; 
276
 dir=0.0 type=Bot3
CreateObject pos=
275
; 
305
 dir=0.0 type=Bot3
CreateObject pos=
81
; 
269
 dir=0.0 type=Bot3
CreateObject pos=
38
; 
186
 dir=0.0 type=Bot3
CreateObject pos=
85
; 
94
 dir=0.0 type=Bot3
CreateObject pos=
195
; 
45
 dir=0.0 type=Bot3
CreateObject pos=
291
; 
66
 dir=0.0 type=Bot3
CreateObject pos=
311
; 
150
 dir=0.0 type=Bot3
CreateObject pos=
236
; 
250
 dir=0.0 type=Bot3
CreateObject pos=
98
; 
317
 dir=0.0 type=Bot3
CreateObject pos=
-7
; 
321
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
272
 dir=0.0 type=Bot3
CreateObject pos=
20
; 
177
 dir=0.0 type=Bot3
CreateObject pos=
116
; 
84
 dir=0.0 type=Bot3
CreateObject pos=
246
; 
36
 dir=0.0 type=Bot3
CreateObject pos=
338
; 
48
 dir=0.0 type=Bot3
CreateObject pos=
365
; 
111
 dir=0.0 type=Bot3
CreateObject pos=
307
; 
195
 dir=0.0 type=Bot3
CreateObject pos=
164
; 
238
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
-15
; 
188
 dir=0.0 type=Bot3
CreateObject pos=
393
; 
24
 dir=0.0 type=Bot3
CreateObject pos=
425
; 
98
 dir=0.0 type=Bot3
CreateObject pos=
325
; 
141
 dir=0.0 type=Bot3
CreateObject pos=
165
; 
91
 dir=0.0 type=Bot3
CreateObject pos=
10
; 
-6
 dir=0.0 type=Bot3
CreateObject pos=
10
; 
-6
 dir=0.0 type=Bot3
CreateObject pos=
10
; 
-6
 dir=0.0 type=Bot3
CreateObject pos=
6
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
151
; 
1
 dir=0.0 type=Bot3
CreateObject pos=
271
; 
83
 dir=0.0 type=Bot3
CreateObject pos=
304
; 
177
 dir=0.0 type=Bot3
CreateObject pos=
207
; 
244
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
216
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
216
 dir=0.0 type=Bot3
CreateObject pos=
62
; 
216
 dir=0.0 type=Bot3
CreateObject pos=
-11
; 
-15
 dir=0.0 type=Bot3
CreateObject pos=
169
; 
-12
 dir=0.0 type=Bot3
CreateObject pos=
397
; 
67
 dir=0.0 type=Bot3
CreateObject pos=
645
; 
219
 dir=0.0 type=Bot3
CreateObject pos=
714
; 
267
 dir=0.0 type=Bot3
CreateObject pos=
694
; 
259
 dir=0.0 type=Bot3
CreateObject pos=
562
; 
208
 dir=0.0 type=Bot3
CreateObject pos=
357
; 
147
 dir=0.0 type=Bot3
CreateObject pos=
201
; 
98
 dir=0.0 type=Bot3
CreateObject pos=
163
; 
81
 dir=0.0 type=Bot3
CreateObject pos=
217
; 
94
 dir=0.0 type=Bot3
CreateObject pos=
433
; 
162
 dir=0.0 type=Bot3
CreateObject pos=
608
; 
222
 dir=0.0 type=Bot3
CreateObject pos=
688
; 
273
 dir=0.0 type=Bot3
CreateObject pos=
676
; 
290
 dir=0.0 type=Bot3
CreateObject pos=
567
; 
266
 dir=0.0 type=Bot3
CreateObject pos=
396
; 
209
 dir=0.0 type=Bot3
CreateObject pos=
270
; 
150
 dir=0.0 type=Bot3
CreateObject pos=
243
; 
90
 dir=0.0 type=Bot3
CreateObject pos=
384
; 
41
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
605
; 
37
 dir=0.0 type=Bot3
CreateObject pos=
584
; 
399
 dir=0.0 type=Bot3
CreateObject pos=
433
; 
426
 dir=0.0 type=Bot3
CreateObject pos=
381
; 
381
 dir=0.0 type=Bot3
CreateObject pos=
435
; 
253
 dir=0.0 type=Bot3
CreateObject pos=
567
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
706
; 
179
 dir=0.0 type=Bot3
CreateObject pos=
641
; 
455
 dir=0.0 type=Bot3
CreateObject pos=
542
; 
445
 dir=0.0 type=Bot3
CreateObject pos=
461
; 
391
 dir=0.0 type=Bot3
CreateObject pos=
459
; 
355
 dir=0.0 type=Bot3
CreateObject pos=
510
; 
337
 dir=0.0 type=Bot3
CreateObject pos=
608
; 
347
 dir=0.0 type=Bot3
CreateObject pos=
708
; 
389
 dir=0.0 type=Bot3
CreateObject pos=
708
; 
389
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
492
 dir=0.0 type=Bot3
CreateObject pos=
641
; 
509
 dir=0.0 type=Bot3
CreateObject pos=
516
; 
484
 dir=0.0 type=Bot3
CreateObject pos=
477
; 
457
 dir=0.0 type=Bot3
CreateObject pos=
473
; 
441
 dir=0.0 type=Bot3
CreateObject pos=
515
; 
457
 dir=0.0 type=Bot3
CreateObject pos=
603
; 
521
 dir=0.0 type=Bot3
CreateObject pos=
661
; 
585
 dir=0.0 type=Bot3
CreateObject pos=
665
; 
616
 dir=0.0 type=Bot3
CreateObject pos=
614
; 
610
 dir=0.0 type=Bot3
CreateObject pos=
481
; 
550
 dir=0.0 type=Bot3
CreateObject pos=
421
; 
495
 dir=0.0 type=Bot3
CreateObject pos=
415
; 
449
 dir=0.0 type=Bot3
CreateObject pos=
470
; 
438
 dir=0.0 type=Bot3
CreateObject pos=
565
; 
488
 dir=0.0 type=Bot3
CreateObject pos=
630
; 
587
 dir=0.0 type=Bot3
CreateObject pos=
620
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
620
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
620
; 
678
 dir=0.0 type=Bot3
CreateObject pos=
313
; 
684
 dir=0.0 type=Bot3
CreateObject pos=
291
; 
620
 dir=0.0 type=Bot3
CreateObject pos=
357
; 
552
 dir=0.0 type=Bot3
CreateObject pos=
513
; 
515
 dir=0.0 type=Bot3
CreateObject pos=
676
; 
532
 dir=0.0 type=Bot3
CreateObject pos=
676
; 
532
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
669
 dir=0.0 type=Bot3
CreateObject pos=
719
; 
669
 dir=0.0 type=Bot3
CreateObject pos=
325
; 
670
 dir=0.0 type=Bot3
CreateObject pos=
239
; 
598
 dir=0.0 type=Bot3
CreateObject pos=
247
; 
509
 dir=0.0 type=Bot3


This should be like this.

CreateObject pos=414; 262 dir=0.0 type=Bot3

If you say I should use Seek then you'll have to explain the parameters to me.I don't understand the manual on that part.

FanOfHumor

Nevermind I figured it out with Seek and it works exactly correct now.Thanks Again!

Crimson Wizard

#4
Quote from: Pajama Sam on Wed 27/07/2022 20:31:45
Thanks again.That solved it but there's another problem now.WriteRawLine skips to the next row everytime it places text.
The way I have it is that each placement adds to the last and after those are placed it moves to the next line.

You could do that in one call to WriteRawLine if you create a full formatted string, for example:
Code: ags

String s = String.Format("CreateObject pos=%d; %d dir=0.0 type=Bot3", other[othernum].X, other[othernum].Y)
output.WriteRawLine(s);


Or, alternatively:
Code: ags

String s = "CreateObject pos=";
s = s.Append(somethingx);
s = s.Append("; ");
s = s.Append(somethingy);
s = s.Append(" dir=0.0 type=Bot3");
output.WriteRawLine(s);

SMF spam blocked by CleanTalk